Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi Everyone,
We are trying to show qty sold month by month by account/product/color/price in a table.
We are using the current DAX:
Current Month =
CALCULATE(
SUM(Sales[Quantity]),
PARALLELPERIOD(Dates[Date], -0,MONTH)) -
CALCULATE(
SUM(Sales[Quantity]),
PARALLELPERIOD(Dates[Date], -1,MONTH))
One Month Ago=
CALCULATE(
SUM(Sales[Quantity]),
PARALLELPERIOD(Dates[Date], -1,MONTH)) -
CALCULATE(
SUM(Sales[Quantity]),
PARALLELPERIOD(Dates[Date], -2,MONTH))
and so on up until six months.
We get the totals right for all the months, but the values displayed within the table (row level) are not for all the months. What are we doing wrong? What are we missing on?
Current Month - Expected Result
Power BI Current Month: Total is correct, but not at row level:
Any idea what are we missing on? Any help would be much appreciated.
Data Relationships:
Thanks
Intech
Hi @chchIntech ,
Please replace PARALLELPERIOD with DATESINPERIOD function for a test. Refer to this document for detailed syntax.
Regards,
Yuliana Gu
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
97 | |
78 | |
64 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |