Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
I'm new to Power BI, can anyone help me fix this Measure:
BF =Before, AF = After. I want to take the results from column BF and this display them in the column AF in order to calculate the variance.
Hi @DannyPhan ,
Can you provide .pbix files without sensitive data or simply data?
If you are unsure how to upload data please refer to
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
Best Regards,
Wenbin Zhou
Hi @DannyPhan - I suggest making adjustments to the prev_index logic and filtering to ensure it looks for the previous row based on your custom index logic. Please use the updated measure
Test =
VAR current_index = MAX(version_code[index])
VAR prev_index = current_index - 1
VAR prev_ver = LOOKUPVALUE(version_code[ver], version_code[index], prev_index)
RETURN
CALCULATE(
SUM('Version'[NC_TT_TN]),
FILTER(
ALLEXCEPT('Version', 'Version'[MTC]),
'Version'[Ver] = prev_ver
)
)
Hope this works to display the expected output.
Proud to be a Super User! | |
Thanks for your answer @rajendraongole1 . But it still display the same result as before. Noted that the model has parent child hierachy.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
82 | |
78 | |
52 | |
39 | |
35 |
User | Count |
---|---|
94 | |
79 | |
51 | |
47 | |
47 |