Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Commons94
Frequent Visitor

Total of dax measure is blank, but it generates results in a table visual

Commons94_0-1689933830796.png

the above shown code is my dax measure. This measures produces values for the respective BelegXPos when I use it in a table but doesn't show the grand total in the table and also shows up a blank when I use it in a 'Card' visual. Do you guys have any idea why could it be so..? Sample dataset is given below. Thanks a lot in advance.

BelegXPosBUDATWEBTE Menge0
A09/09/1911183364
B16/05/1924171147
C18/09/1910194367
D15/03/1920109215
E24/03/1923172287
F20/07/1920150341
A19/08/1926127152
B29/08/1925170340
C19/11/1919183335
D10/03/1922154136
E19/08/1921142319
Total 1755<Blank>
4 REPLIES 4
Commons94
Frequent Visitor

thanks for your reply. It didn't work. So I duplciated the tables and worked it out through 'Group by' function in Power Query.

 

PS: sorry for the late reply. 

mlsx4
Memorable Member
Memorable Member

Maybe you just need to add a SUMX

 

 

BTE Menge1=
SUMX('Table',[BTE Menge0])

//or use SUMX (VALUES(Table[DAT]),[BTE Menge0]) if you try to sum by date

 

@mlsx4 thanks for your reply. I did try working with SUMX function and its giving me a result and not blank.... the problem now is that I'm comparing 3 scenarios like the following:

1st scenario: where BTE_Termin = budat

Commons94_0-1689948954270.png

 

2nd scenario: where BTE_Termin - budat  <=1, for which I'm using the following code:

Commons94_1-1689949044245.png

 

3rd scenario: where BTE_Termin - budat <= 2, for which the following code is being used:

Commons94_2-1689949106915.png

but SUMX seems to give me the same answer for all 3 scenarios. instead the BTE MengeX (result column in red: see table in 1st question) should be different for different scenarios. the measures are giving me different BTE Menge in table visual but not in a card or chart. 

hope you can understand the issue. thanks!

Hi @Commons94 

 

Yes, I understand the issue. And if you add a condition? Something similar to:

If (selectedvalue(BelegX)="", menge0+menge1+menge2)

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.