Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Suppose to have a table like this:
Store, Fruit
A, Apple
A, Banana
A, Banana
A, Grape
B, Banana
B, Grape
B, Grape
How can you get the following output?
Store, Fruits
A, 1 Apple / 2 Banana / 1 Grape
B, 1 Banana / 2 Grape
Solved! Go to Solution.
Well, put Store in a table visualization along with something like:
Measure =
VAR __Table =
SUMMARIZE(
'Table',
[Fruit],
"Count",COUNTROWS('Table')
)
RETURN
CONCATENATEX(__Table,[Count] & " " & [Fruit]," / ")
Well, put Store in a table visualization along with something like:
Measure =
VAR __Table =
SUMMARIZE(
'Table',
[Fruit],
"Count",COUNTROWS('Table')
)
RETURN
CONCATENATEX(__Table,[Count] & " " & [Fruit]," / ")
Exactly what I needed!
I'll mark it as solution.
Thank you so much.
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
12 | |
10 | |
6 |