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.
Goal: Compare Fiscal Quarters against each other for 2 fiscal years
Note: our fiscal year begins June 1st
DAX used:
Solved! Go to Solution.
@Anonymous -
It looks like your Date table has a column that is type Date. That is good. Now, make sure you have that table "Marked as Date Table". Then you can use the power "Time Intelligence" functions in DAX.
For example, if you have a Measure called Value, you can create another Measure called Value Last Year:
Value Last Year = CALCULATE ( [Value], SAMEPERIODLASTYEAR ( 'Date'[Date] ) )
Then, put both measures in your line chart.
Cheers!
Nathan
@Anonymous -
It looks like your Date table has a column that is type Date. That is good. Now, make sure you have that table "Marked as Date Table". Then you can use the power "Time Intelligence" functions in DAX.
For example, if you have a Measure called Value, you can create another Measure called Value Last Year:
Value Last Year = CALCULATE ( [Value], SAMEPERIODLASTYEAR ( 'Date'[Date] ) )
Then, put both measures in your line chart.
Cheers!
Nathan
Thank you, that helped a lot. Is there any way to trim the results so as to exclude the FY18 values prior to the comparison period as well as excluding the "Last Year" values that have not yet had a comparison period for this FY? Ideally, I would like it to show only the active comparison period. Thanks again!
@Anonymous - You'll need to add a filter/slicer to limit to only the time-frame you're interested in comparing.
Got it working now. Thank you so much!
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 |
---|---|
107 | |
93 | |
77 | |
65 | |
53 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |