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.
Hi Guys.
Looking and looking I only saw complicated formulas of what I need and I couldn't reproduce.
I think it's simple. (for the experts)
I have a column with results from a measure. (with disposable zeros)
Planned |
Planned |
0 |
Finished |
Started |
I wish I had a word count to use in a visual. (like Pie)
Finished | 1 |
Planned | 2 |
Started | 1 |
I thank the community for the help, every answer I get here helps me in at least 10 different things.
Thanks!
Solved! Go to Solution.
Hi @Peleias ,
You need to create a separate table that contains all the status values.
Then use the measure.
Count_ =
COUNTROWS (
FILTER (
VALUES ( 'Table'[Column] ),
[Result from a Measure] = MAX ( 'Status'[Value] )
)
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Peleias , if the measure is returning those values. Then you need to have a table with those values and then you use that in another measure using a group from the original table
Very similar to what I have done here
Dynamic segmentation -Measure to Dimension conversion: https://youtu.be/gzY40NWJpWQ
Thank you @amitchandak
I saw your video and I didn't understand it very well.
I searched here in the forum for several posts and most ask for a filter or a complex formula to have the result of the count based on a measure.
So I asked for help here in the simplest version of this Dax of Counting words resulting from a measure... in order to understand how it works and understand more complex formulas with filters and variables of the result of a measure.
Column | Result from a Measure |
Floor | Planned |
Roof | Planned |
Pilar Period | 0 |
Pilar | Finished |
wall | Started |
Expect Result
Status | Count |
Started | 1 |
Planned | 2 |
Finished | 1 |
Thanks
Hi @Peleias ,
You need to create a separate table that contains all the status values.
Then use the measure.
Count_ =
COUNTROWS (
FILTER (
VALUES ( 'Table'[Column] ),
[Result from a Measure] = MAX ( 'Status'[Value] )
)
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@v-kkf-msft Thank you!
Perfect answer!
I had reached another conclusion but without being able to connect with the table. However I asked another question, I'll put that you answered the 2.
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 |
---|---|
114 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |