Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Please help me on following scenario
I have FactMain table with column ProductCategory , CustomerName, PurchasedDate.
1. how to get list of Top 20 CustomerName who purchased more product based on ProductCategory.
And all other products (not in Top 20) will be consider as "Others" (ProductCategory)
For Example
Table Visual 2 should be show the list, when I click on particular ProductCategory of Table visual 1
I am able to show the list for all Product Category except "Others"
When I clicked on Others from table visual 1 , Table visual showing blank
Please help
Solved! Go to Solution.
hi @Sharmi_28 ,
Tried to create Table Visual1 using Adventureworks SQL database. Please replace table name and column names with yours.
STEP1
Create a calculated table and do not link it to anything. Use product from this table for the visuals.
STEP2
Create this measure
hi @Sharmi_28 ,
Tried to create Table Visual1 using Adventureworks SQL database. Please replace table name and column names with yours.
STEP1
Create a calculated table and do not link it to anything. Use product from this table for the visuals.
STEP2
Create this measure
Hi @talespin
Really appriciate for your solution.
With your suggested measure MTopCustomersByProduct we got the Customer Count By Product.
I Also want customer details in other table visual
for example , when I click on Product Name "water bottle - 30 oz" from table visual the all customer who purchased "water bottle - 30 oz" list should be display to other table visual.
This is working fine for all products but not work for "Others"
How to get customer details who purchased those product which contains in Others?
hi @Sharmi_28 ,
In your detail table visual, add only columns from your linked data model(not the calculated table).
Create a measure like this and apply it as a filter on your detail table visual.
Measure
-------------------------------
@talespin Thanks a lot.
I applied measure as filter suggested by you.
but its still display blank table (right side) when I click on Others product from left side table.
What happen when you click on Others product?
hi @Sharmi_28 ,
Sorry I don't have a perfect solution, its a work around.
Problem - I can't run any measure on customer detail table as it will fail as it needs to be eveluated for every row of customer, but I can run it on a Product table. Using Intermediate table. With below measure when "Others" is selected from first table visual, it will remove all products which have a rank <= 20 and keep everything else. Then use this table to show customers for one selected product. Place a filter(IsSelectedProduct = 1) on second table visual as shown in second screenshot.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
12 | |
10 | |
10 | |
8 |
User | Count |
---|---|
16 | |
15 | |
15 | |
12 | |
10 |