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.
I have a List of items that need to be counted and put into a bar graph in Power BI, but The data has some items combined in the same Excel Cell. How can i count the items from the list in the data and display them separately?
example:
Solved! Go to Solution.
Hi @Dexrend
Split column by ',':
Unpivot columns as:
Create List table:
List =
VALUES('Table'[Value])
Create measure as:
Measure =
CALCULATE(
COUNT('Table'[Value]),
FILTER(
'Table','Table'[Value]=MAX(List[Value])
)
)
Here is the outptu:
The demo is attached, please try it.
If you still have some question, please don't hesitate to let me known.
Best Regards,
Link
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!
Thanks! That is exalty what i needed.
Hi @Dexrend
Split column by ',':
Unpivot columns as:
Create List table:
List =
VALUES('Table'[Value])
Create measure as:
Measure =
CALCULATE(
COUNT('Table'[Value]),
FILTER(
'Table','Table'[Value]=MAX(List[Value])
)
)
Here is the outptu:
The demo is attached, please try it.
If you still have some question, please don't hesitate to let me known.
Best Regards,
Link
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!
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 |
---|---|
108 | |
98 | |
81 | |
65 | |
62 |
User | Count |
---|---|
147 | |
116 | |
104 | |
88 | |
65 |