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.
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.
BelegXPos | BUDAT | WE | BTE Menge0 |
A | 09/09/1911 | 183 | 364 |
B | 16/05/1924 | 171 | 147 |
C | 18/09/1910 | 194 | 367 |
D | 15/03/1920 | 109 | 215 |
E | 24/03/1923 | 172 | 287 |
F | 20/07/1920 | 150 | 341 |
A | 19/08/1926 | 127 | 152 |
B | 29/08/1925 | 170 | 340 |
C | 19/11/1919 | 183 | 335 |
D | 10/03/1922 | 154 | 136 |
E | 19/08/1921 | 142 | 319 |
Total | 1755 | <Blank> |
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.
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
2nd scenario: where BTE_Termin - budat <=1, for which I'm using the following code:
3rd scenario: where BTE_Termin - budat <= 2, for which the following code is being used:
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)
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 |
---|---|
15 | |
11 | |
11 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |