Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello community,
I have this case I hope someone can help me.
First we have the sales by customer :
Then I have to validate if this client did not buy me 6 months before then I consider it as a new client:
So far everything ok is validating correctly, now I need the totals to add up.
This measure, although it is adding correctly by column, the total of rows ignores it.
Try the following:
Which places me the 1 per row but in the end is adding 9 when in reality it should be 8.
| Row labels | 2022-2 | 2022-3 | 2022-4 | 2022-5 | 2022-6 | 2022-7 | 2022-8 | 2022-9 | Total general |
| AREQUIPA.01.80123000000000126 | 1055 | 1055 | |||||||
| AREQUIPA.01.80123000000000181 | 216 | 375 | 859 | 1450 | |||||
| AREQUIPA.01.80123000000000345 | 1354 | 1354 | |||||||
| AREQUIPA.01.80123000000000411 | 10157 | 10157 | |||||||
| AREQUIPA.01.80123000000001063 | 103 | 103 | |||||||
| AREQUIPA.01.80123000000001718 | 648 | 648 | |||||||
| AREQUIPA.01.80123000000010066 | 187 | 484 | 671 | ||||||
| AREQUIPA.01.80123000000010406 | 352 | 0 | 352 | ||||||
| AREQUIPA.01.80123000000010519 | 25 | 25 | |||||||
| Total general | 568 | 1055 | 562 | 10157 | 2697 | 648 | 128 | 15815 |
Thanks for reaching out to us.
>>
The total row is to count the rows on it. There are 9 rows of 1 on it, so total=9. If you need it to output other values, you can use some functions, such as hasonevalue(), hasonefilter() and so on.
Something like this
IF(HASONEFILTER(table[col]), [measure], [total measure])
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 32 | |
| 31 | |
| 27 |