Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
61 | |
52 | |
50 | |
36 | |
33 |
User | Count |
---|---|
84 | |
71 | |
55 | |
45 | |
43 |