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.
Hi everyone,
I'm wondering if there is a way to use DAX to get an analysis based on a grouped variable. For example, I have two columns: Case # & drug. Each drug in a specific case is a new row but each case has multiple rows because there are multiple drugs in each case. Is there a way to output a single row per case and to show all the drugs for that case in the next column?
Thanks in advance!
Solved! Go to Solution.
Hi,
This measure works
Measure = CONCATENATEX(VALUES(Data[Drug]),data[drug]," ")
Hope this helps.
Hi,
Share some data and show the expected result.
What my data currently looks like:
How I need the data to look:
Thanks!
Hi,
This measure works
Measure = CONCATENATEX(VALUES(Data[Drug]),data[drug]," ")
Hope this helps.
User | Count |
---|---|
77 | |
74 | |
42 | |
32 | |
28 |
User | Count |
---|---|
100 | |
93 | |
52 | |
50 | |
48 |