Forum Discussion

Ben9987's avatar
Ben9987
Frequent Visitor
2 years ago
Solved

Getting Wrong Grand Total

Hello Everyone,

I am having the following issue

i have a table visual in Power BI and i have 2 measures (Measure A,Measure B).These 2 Measure are coming from different fact table.Below is the screenshot attached

 

Now the Scenario here is  for Country 2 since Measure A is blank ,We need to replace Measure B Value in Measure A.So i have used the following Dax function IF(ISBLANK(Measure A),Measure B,Measure A) and have got the following output as shown below

 

Now what happens is when grand total is being calculated it only gives me the total of Country 1 in Measure A (i.e 100)as shown below  but the  output should have been 400.

 

SUMX() resolves the issue but Measure A and Measure B would be used across other dimensions as well.

 

I am seeking guidance on how best to address this issue and achieve the desired outcome efficiently.

 

Thank you for your attention to this matter, and I look forward to your guidance.

 

 

3 Replies