Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi, I have a problem with total in my prepared measure, I know that need to user hasonevalue function but my all ideas doesn't work.
My measure:
Solved! Go to Solution.
Hi @mic_rys,
According to the description, it seems like a common measure total level calculation issues.
If that is the case, I'd like to suggest you refer to the following link to know how to handle this scenario.
Measure Totals, The Final Word
Regards,
Xiaoxin Sheng
@mic_rys , Change the return like
sumx( addcolumns(summarize( Table, Clients[Code] , 'Date'[Year Month]), "_1", calculate(IF ( HASONEVALUE ( Clients[Code] ), FillEmpty ,BLANK() ))), [_1])
@mic_rys ,
can you simply keep this in return
sumx( addcolumns(summarize( Table, Clients[Code] , 'Date'[Year Month]), "_1", calculate(IF ( HASONEVALUE ( Clients[Code] ), FillEmpty ,BLANK() ))), [_1])
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
@amitchandak
It's live connection so it not easy to simplify the data but I can show part of the model which is used.
The result of your code is:
Hi @mic_rys,
According to the description, it seems like a common measure total level calculation issues.
If that is the case, I'd like to suggest you refer to the following link to know how to handle this scenario.
Measure Totals, The Final Word
Regards,
Xiaoxin Sheng
HI, thanks, it helped somewhat! I added extra measure and now it summarizes well!
User | Count |
---|---|
50 | |
24 | |
18 | |
17 | |
14 |
User | Count |
---|---|
91 | |
86 | |
39 | |
25 | |
21 |