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 guys,
I have a csv that has several columns containing strings e.g. apple;banana;orange;apple
the strings are outputs from a list of over 200 potential 'fruits' so I cannot name individually within the code
Is it possible to write a dynamic DAX code to extract the total number of fruits per column as well as total number of fruits by fruit
i would like to be able to output a simple bar chart like below
Solved! Go to Solution.
I would recommend to not use DAX for this, but to unpivot the columns when loading the data, e.g. using power query.
https://learn.microsoft.com/en-us/power-query/unpivot-column
I would recommend to not use DAX for this, but to unpivot the columns when loading the data, e.g. using power query.
https://learn.microsoft.com/en-us/power-query/unpivot-column
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
9 | |
6 |