Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Evening PowerBI people.
I am in need of some DAX assistance.
I have created a table called TodaysDate that hols todays date plus a measure to calculate 3 months back.
I have then written the below DAX in another table to Sum "Revenue" but only where the Date "Financial Period" > 3 months back
Solved! Go to Solution.
You cannot use two columns in the calculate statement. These should work
Total Revenue = VAR d = MAX(TodaysDate[3monthsback]) RETURN SUMX( FILTER( 'Ex SP Figures', 'Ex SP Figures'[Financial Period] > d ), 'Ex SP Figures'[Revenue] )
Total Revenue = calculate( SUM('Ex SP Figures'[Revenue]), FILTER( 'Ex SP Figures'[Financial Period], 'Ex SP Figures'[Financial Period]>MAX(TodaysDate[3monthsback]) ) )
Hi @GarethWoodhouse,
Could you please mark the proper answers as solutions?
Best Regards,
Dale
You cannot use two columns in the calculate statement. These should work
Total Revenue = VAR d = MAX(TodaysDate[3monthsback]) RETURN SUMX( FILTER( 'Ex SP Figures', 'Ex SP Figures'[Financial Period] > d ), 'Ex SP Figures'[Revenue] )
Total Revenue = calculate( SUM('Ex SP Figures'[Revenue]), FILTER( 'Ex SP Figures'[Financial Period], 'Ex SP Figures'[Financial Period]>MAX(TodaysDate[3monthsback]) ) )
Hey,
please have a look at this site:
https://www.daxpatterns.com/time-patterns/
I guess, here you will your answer.
Regards,
Tom
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
94 | |
80 | |
62 | |
39 |