Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi All,
I have created two DAX measures, but I’m not getting the expected results in Power BI. Below are the details:
1) Subtraction: [Order RSD] - [Qtr Baseline Fcst]
2) Division: [Order RSD] / [Qtr Baseline Fcst]
When I verify the same logic in Excel, the values are coming out correctly. However, in Power BI, the results are incorrect.
Could you please help me understand what might be going wrong and assist me in resolving this issue?
Thank you,
Solved! Go to Solution.
Hi @harirao,
For division, [Order RSD] must be recalculated per row using CALCULATE + FILTER, and baseline fetched using LOOKUPVALUE, so both values align per row.
Regards,
Vinay Pabbu
Hi @v-vpabbu
I was able to find a solution for the subtraction logic [Order RSD] - [Qtr Baseline Fcst] using the below DAX:
TO GO =
However, when I apply a similar approach for division, i.e., [Order RSD] / [Qtr Baseline Fcst], it doesn't return the expected results.
Do you have any suggestions on how to resolve this issue?
Thanks in advance for your help.
Best regards,
Hi @harirao,
For division, [Order RSD] must be recalculated per row using CALCULATE + FILTER, and baseline fetched using LOOKUPVALUE, so both values align per row.
Regards,
Vinay Pabbu
Hi @harirao,
Thank you for reaching out to Microsoft Fabric Community Forum.
Excel works with static rows, whereas Power BI measures operate within a dynamic filter context.
When you use a calculated column, it evaluates row by row, which aligns more closely with Excel behavior. However, when you use a measure like LOOKUPVALUE, it doesn't iterate row by row—it calculates based on the current filter context, which may not give you the expected results.
If you need to replicate row-by-row logic within a measure, consider using SUMX or another iterator function to explicitly control the row-level behavior.
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Regards,
Vinay Pabbu
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
76 | |
76 | |
55 | |
37 | |
34 |
User | Count |
---|---|
99 | |
56 | |
53 | |
44 | |
40 |