The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello, I'm seeking edits to my DAX measure.
I have a pie chart showing whether participants prefer trainings (1) In-Person, (2) Online, (3) Hybrid, or (4) No Preference. In PowerQuery, I unpivoted the column ensuring to keep all rows, so the values could be blank, 1, 2, 3, or 4. I want to ignore the blanks and calculate the % of the GT for each.
However, when I built the pie chart, it's not showing the true data, which is (1) In-person with 1 count = 7.69%, (2) Online with 9 counts = 69.23%, (3) Hybrid with 1 count = 7.69%, and (4) No Preference with 2 counts 14.38% = 100%.
Below is the DAX measure that is returning wrong data. Please see image for the output.
Hi, @jiexika24
Can you provide some sample PBIX files? Based on your description, it's hard to model what your table will look like. Please be careful not to include private data.
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Jianpeng Li
User | Count |
---|---|
11 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
23 | |
14 | |
13 | |
9 | |
8 |