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.
I need to calculate the MTD, QTD and YTD total Sales. Our Fiscal Yera beigns in April and ends in Mar. So For us it is FY 2020 and Q1 is Apr-19 to Jun-19, Q2 is Jul-19 to Sep-19, Q3 is Oct-19 to Dec-19 and Q4 is Jan-20 to Mar-20.
I have a measure created called "Total-Wins" and i have a Date Table. I am using the formual :
Here's an answer from another post
You would need to use a DAX variable and CALCULATETABLE function with that variable formula and use that in place of the DATESQTD. I would replace your DATEADD -1 and QUARTER with an equivalent number of days -90 DAYS for example.
so....
everyplace you have DATESQTD you need to replace that expression with a CalculateTable expression
you would set the dates you want to use to calculate the quarters by using a parameter table perhaps, or just as variables in your Measure
If you need help with the actual DAX code just holler.
Help when you know. Ask when you don't!
Ok
Can you send my your Power BI File ?
Help when you know. Ask when you don't!
ken@8thfold.com
i'm off for the night, but i'll have something for you in the morning
Help when you know. Ask when you don't!
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 |
---|---|
49 | |
25 | |
20 | |
15 | |
12 |
User | Count |
---|---|
57 | |
49 | |
44 | |
19 | |
18 |