The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 |
---|---|
14 | |
11 | |
6 | |
6 | |
5 |
User | Count |
---|---|
28 | |
17 | |
11 | |
7 | |
5 |