The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
26 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
31 | |
12 | |
10 | |
10 | |
9 |