Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello to everybody,
Problem:
Grand Total not equal to rows gotten by if statement.
Dax for Column "Sutarčių vertė":
Solved! Go to Solution.
This is a very common issue that you face in DAX. The grand total in DAX doesn't work like excel where it would go and add the values in the column.
Each cell is calculated independently by DAX, including the grand total value.
The result from the dax formula you wrote is correct. To understand, you need to look at the calcuation in the grand total line.
As per the fomula, if [Projekto vertė PTD] is null or blank, give [Pagrindinės veiklos pajamos] else [Projekto vertė PTD].
Now the value for [Projekto vertė PTD] for the grand total line is 561,537.00. It is not blank or null, therefore, the result of this dax formula will be 561,537. and not 430.568 as you expect
To overcome this issue, you need to use SUMX to make sure that the grand total adds up to the individual cells.
An example of that would be
sumx([Table], if(or([Projekto vertė PTD]=0;ISBLANK([Projekto vertė PTD]));[Pagrindinės veiklos pajamos];[Projekto vertė])
This is a very common issue that you face in DAX. The grand total in DAX doesn't work like excel where it would go and add the values in the column.
Each cell is calculated independently by DAX, including the grand total value.
The result from the dax formula you wrote is correct. To understand, you need to look at the calcuation in the grand total line.
As per the fomula, if [Projekto vertė PTD] is null or blank, give [Pagrindinės veiklos pajamos] else [Projekto vertė PTD].
Now the value for [Projekto vertė PTD] for the grand total line is 561,537.00. It is not blank or null, therefore, the result of this dax formula will be 561,537. and not 430.568 as you expect
To overcome this issue, you need to use SUMX to make sure that the grand total adds up to the individual cells.
An example of that would be
sumx([Table], if(or([Projekto vertė PTD]=0;ISBLANK([Projekto vertė PTD]));[Pagrindinės veiklos pajamos];[Projekto vertė])
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
21 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |