Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I created a measure using "if" DAX formula and result is "0" or "1". Issue is that even if the result format is considered as a number by Power BI Desktop, the grand total of this measure is not calculated. I requested some help on the forum and to my Company BI IT Service and no one found a solution. This way of working is not very academic but very simple (kind of things we use to do on Excel and works perfectly), and my feeling is that more simple things are, better they are. And I can't go ahead on my report because no workaround.
Can you please fix this ? In the following screenshot relevant measure is "IC Actif 1"
Did anyone ever find a solution to this? I have the exact same problem. A measure that uses IF and returns 1 or 0, but is not summing, in any way.
Can you try:
Totals for Actif IC 1 = SUMX('table' [fullname], [Actif IC 1])
See if that works,
Regards,
Paul
Proud to be a Super User!
Paul on Linkedin.
Hello @PaulDBrown,
The column total is calculated but incorrect. On the whole tab grand total result is 10 instead 1 163.
Maybe because there 12 lines with different results for a single fullname value. See example on screenshot, where you can see that total is 0 when using SUMX on "DumUser" table (where we can find "fullname").
With SUMX on "DumDate" table (where we can find "fullname"), the meaure is directly incorrect (see screenshot)
@Anonymous
Hi, Try using thess Functions:
HASONEVALUE, SUMX and SUMMARIZE.
Can't show you the exact solution because don't know if Month, Activite IC and FullName coming from same or different tables and the relatioship between this.
If you can post a Dummy PBIX the solution will be more precisely.
Regards
Hello @PaulDBrown,
The column total is calculated but incorrect. On the whole tab grand total result is 10 instead 1 163.
Maybe because there 12 lines with different results for a single fullname value. See example on screenshot, where you can see that total is 0 when using SUMX on "DumUser" table (where we can find "fullname").
With SUMX on "DumDate" table (where we can find "fullname"), the meaure is directly incorrect (see screenshot)
Hi @Anonymous,
You can create a calculated column with:
Column= IF(SUM(Table1[Column2])-SUM(Table1[Column1])<0 || ISBLANK(SUM(Table1[Column2])),0,1)
Then set aggregation with SUM when the column put in the table visual.
Best Regards,
Qiuyun Yu
Hi @v-qiuyu-msft,
Thanks for your reply, but I can't set the aggregation, the only choices I have are "no calculation" or "% of grand total". I maybe did not precize that "nbre Opp" and "Obj. IC" are measures.
Anyway I change the formula of "Actif IC" to that one (to avoid measure usage) : Actif IC 1 = IF(DISTINCTCOUNT(FaitsOppC[OpportunityId])-SUM('Objectifs IC'[Objectif])<0 || DISTINCTCOUNT(FaitsOppC[OpportunityId])<1;0;1)
I still can't aggregate.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |