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.
Hello,
I have 2 measures (calculated with the quick measure Running Total) :
- Real acum (which is the running total of my sales, what really was sold)
- Objetivo acum (which is the running toal of the objective we should do)
Now I want to know the variation between these 2 measures, to see if I am reaching my goal or not. So what I did was :
Var acum % = DIVIDE(('OBJ PI'[Real acum]-'OBJ PI'[Objectivo acum]);'OBJ PI'[Objectivo acum];0)
But I get the exact same result as the variation between my Real and my Objective. I mean, what I got was that my "normal" variation equals my "cumulative" variation, which is not true.
Anyone can help me with this?
Thank you!
D.
Solved! Go to Solution.
Hi @DM_BI,
After play with you sample, I found you can remove column defined in allselected function to get correct result value:
FACTURATION running total in MONTH = CALCULATE( SUM('Hoja1'[FACTURATION]), FILTER( ALLSELECTED('Hoja1'), ISONORAFTER('Hoja1'[MONTH], MAX('Hoja1'[MONTH]), DESC) ) ) OBJECTIVE FACTURATION running total in MONTH = CALCULATE( SUM('Hoja1'[OBJECTIVE FACTURATION]), FILTER( ALLSELECTED('Hoja1'), ISONORAFTER('Hoja1'[MONTH], MAX('Hoja1'[MONTH]), DESC) ) )
BTW, you can't create dynamic calculated column based on slicer/filter or dynamic measure.(when you use measure in calculate column measure result will been fix)
Calculated Column/Table Change Dynamically According to Slicer Selection in the Report.
Regards,
Xiaoxin Sheng
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 |
---|---|
114 | |
99 | |
82 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |