How to calculate last 3 months sales with Dax in power bi?

To calculate last 3 months sales in Power BI using DAX (Data Analysis Expressions), you can follow these steps: Last 3 Month Sales = CALCULATE(SUM(SalesTable[Sales]), DATESINPERIOD(‘SalesTable'[Date], LASTDATE(‘SalesTable'[Date]), -3, MONTH)) This formula uses the CALCULATE function to calculate the sum of sales for the specified period. The DATESINPERIOD function is used to define the period, starting … Read more

How to write dax to remove duplicates record and show them in the table in Power BI?

In Power BI or Excel, you can use the DAX (Data Analysis Expressions) language to remove duplicates from a table and display the unique records in a new table. To achieve this, you can follow these steps: Please note that the original table with duplicates remains unaffected, and the new table will dynamically update whenever … Read more