Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
This is a 3-fold question ...
Using the test-data below as to which adults and kids like the various fruit (1 represents they like that fruit), my goal is to have a chart that shows which fruit is the most popular compared on down to which one is the least popular.
I can pull the data into a Power BI report, but am not finding how to do the sort from most popular to least popular.
1) My data comes from a website questionnaire and is downloaded into Excel similar to this. My goal will be to keep uploading (or auto refreshing) the new data received so the charts will continously reflect the additional/new data received.
Version | First Name | Last Name | Location | Oranges | Apples | Watermelon | Pineapple | Bananas | Strawberries |
Kids | FN1 | LN1 | Location1 | 1 | 1 | 1 | 1 | ||
Adults | FN2 | LN2 | Location2 | 1 | 1 | 1 | |||
Adults | FN3 | LN3 | Location1 | 1 | 1 | ||||
Kids | FN4 | LN4 | Location2 | 1 | 1 | 1 | 1 | 1 | 1 |
This is what my data looks like thus far.
2nd Item: Need help getting the names of the fruit the bars in the chart represent underneath each bar rather than represented by a different color and noted in the Legend Name. Note: My real data has about 50 different options that will be sorted.
3rd Item: I'll also need to be able to filter by Version (Kid, Adult or both) and Location (Location1, Location 2, or both)
Thank you for your assistance!
Solved! Go to Solution.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Hi @tgreve4ts ,
as @AllisonKennedy mentioned you must first unpivot your data (fruit columns) with Power Query. Then you can build very easy the report like this:
Regards FrankAT
Hi @tgreve4ts ,
as @AllisonKennedy mentioned you must first unpivot your data (fruit columns) with Power Query. Then you can build very easy the report like this:
Regards FrankAT
@FrankAT Thank you SO VERY MUCH! Your directions were amazing and everything is working/sorting as I needed it to now. Appreciate you taking the time to help me out!
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
@AllisonKennedy Huge Virtual High-5! Your assistance was so appreciated! Everything is working/sorting as I needed it to now. Thank you!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
84 | |
64 | |
52 | |
47 |
User | Count |
---|---|
215 | |
90 | |
83 | |
67 | |
59 |