Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
For instance I have a table like this:
| Customer | Cust ID | Type | Sales |
| A | 11 | Platinum | 100 |
| A | 11 | Gold | 20 |
| A | 11 | 300 | |
| B | 12 | Silver | 200 |
| C | 13 | Gold | 100 |
| C | 13 | Silver | 400 |
| D | 14 | Platinum | 600 |
Now I need to show in a card or some box the type of Customers:
Eg: If i select a customer name using the select box then ideally my result should be:
| Customer | Platinum | Gold | Silver |
| A | Yes | Yes | No |
I belive we should use DAX query to get the result. Please advice
Solved! Go to Solution.
You can create three columns.
Platinum =
VAR a=countx(FILTER('data',data[customer]=EARLIER(data[customer])&&data[TYPE]="Platinum"),data[customer])
Return if (a>=1, "Yes","No")Gold =
VAR a=countx(FILTER('data',data[customer]=EARLIER(data[customer])&&data[TYPE]="Gold"),data[customer])
Return if (a>=1, "Yes","No")Silver =
VAR a=countx(FILTER('data',data[customer]=EARLIER(data[customer])&&data[TYPE]="Silver"),data[customer])
Return if (a>=1, "Yes","No")Proud to be a Super User!
You can create three columns.
Platinum =
VAR a=countx(FILTER('data',data[customer]=EARLIER(data[customer])&&data[TYPE]="Platinum"),data[customer])
Return if (a>=1, "Yes","No")Gold =
VAR a=countx(FILTER('data',data[customer]=EARLIER(data[customer])&&data[TYPE]="Gold"),data[customer])
Return if (a>=1, "Yes","No")Silver =
VAR a=countx(FILTER('data',data[customer]=EARLIER(data[customer])&&data[TYPE]="Silver"),data[customer])
Return if (a>=1, "Yes","No")Proud to be a Super User!
This solution works fine with one exception.
The result comes as:
Customer Platinum Gold Silver
A Platinum Gold No
instead of
Customer Platinum Gold Silver
A Yes Yes No
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 54 | |
| 47 | |
| 39 | |
| 16 | |
| 15 |
| User | Count |
|---|---|
| 82 | |
| 69 | |
| 39 | |
| 29 | |
| 27 |