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.
I'm new to Power BI and DAX.
I have a sales dataset and need to create a dashboard where users can select from a dropdown to group customers into "Bought" and "Did not Buy" buckets. The dropdown is custom and can contain individual products, product families, or groups of product families.
They can only select one item from the dropdown.
When they select an item the customer id is placed into the "bought" or "did not buy" bucket.
I modified what I think is a standard PowerBI "Financial Sample" spreadsheet.
I added Cust_ID and Product Family columns (sample below).
Here's what I need to be able to do:
The Sales column is total sales (all products) of customers that bought any Furniture product.
The L1 Sales are just the sales of any furniture product.
Thanks for your help, and let me know if I'm not making any sense.
Solved! Go to Solution.
Glad it helped you, I have modifed the code based on your new requirement, please check it out:
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@GBlair
Please check the attached file if this is what you required.
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Thank you @Fowmy !
This got me a lot further than I was. It works for individual products. I also have the requirement that a Product Family (or group of individual products) could be selected. In that case I want to consider the customer to have bought if one or more products in the family were purchased.
But I think what you've provided allows me to play around with that requirement.
Thanks again.
Glad it helped you, I have modifed the code based on your new requirement, please check it out:
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Thanks for your help. This gave me exactly what I needed.
Hi @GBlair please clarify your part, Table with No Relationships, you mean there is only one table with all necesary data in it?
If your table is in Excel and you need simplified filtering and some measures as on picture it could be done already in Excel with Power Pivot.
If everything above is yes, share sample data excel file with expected output for some input.
Proud to be a Super User!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
72 | |
67 | |
51 | |
38 | |
26 |
User | Count |
---|---|
89 | |
52 | |
45 | |
39 | |
38 |