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 all,
I need to create some measure with calculation for value in previous period.
I have two cases: Previous Quarter and Previous Half Year.
In first case I'm using simple function: CALCULATE([SomeValue],PARALLELPERIOD(SurveyDate[Date],-1,QUARTER))
But how I can do it with semester? on ParallePeriod I can use only YEAR, QUARTER and MONTH.
I can not use PARALLELPERIOD(SurveyDate[Date],-2,QUARTER because it still will work on quarter level and will bring me calculation for quarter level and not for half year.
My Date Hierarchy looks like Month-Quarter-Half Year - Year
I`m sure that such kind of business question is quite common so I`m sure that there is some workaround for it.
Thanks a lot!
Hi @kirkademidov,
It would be better you could provide some dummy data. Especially, please show us what is "Half Year"?
Regards,
Yuliana Gu
How did you define [Half Year] in your table? Are you using a Calendar table or are you using the fact table date column?
What if you had [Half Year Key] that you could base your calculation off of instead of PARALLELPERIOD.
For example, something like:
CALCULATE ( [SomeValue], 'tablename'[Half Year Key you're trying to get] )
Proud to be a Super User!
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 |
---|---|
113 | |
97 | |
80 | |
69 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |