Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello, good afternoon
I have a dashboard that shows information about restaurants and their products sold and a part of the report should show the restaurants that do not sell the selected product.
The model is like this
There are two dimension tables, one for products and one for restaurants and there is a table of facts vw_product_prices in which the products sold are recorded day by day and it is specified in which restaurant it was sold.
At the beginning of the report there is a slicer with the list of products and the visual element that I want to create is a table that shows a list of the restaurants that did not sell the product selected in the slicer, I would like to know if there is a way to achieve this.
Best regards.
Solved! Go to Solution.
Hi @Syndicate_Admin ,
I have created a data sample:
You could create a flag measure:
Flag =
var _t= ADDCOLUMNS(SELECTCOLUMNS('Product_Prices',"Rest_id",[master_restaurant_id],"Prod_id",[master_product_id]),"Prod_name",LOOKUPVALUE(Products[Product],Products[master_product_id],[Prod_id] ))
var _allsold=CONCATENATEX(FILTER(_t,[Rest_id]=MAX('Restaurant'[master_restaurant_id])),[Prod_name],",")
var _allseleted= CONCATENATEX('Products',[Product],",")
return IF(CONTAINSSTRING(_allsold,_allseleted),1,0)
And apply it to filter pane, set as "is 0":
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Syndicate_Admin ,
I have created a data sample:
You could create a flag measure:
Flag =
var _t= ADDCOLUMNS(SELECTCOLUMNS('Product_Prices',"Rest_id",[master_restaurant_id],"Prod_id",[master_product_id]),"Prod_name",LOOKUPVALUE(Products[Product],Products[master_product_id],[Prod_id] ))
var _allsold=CONCATENATEX(FILTER(_t,[Rest_id]=MAX('Restaurant'[master_restaurant_id])),[Prod_name],",")
var _allseleted= CONCATENATEX('Products',[Product],",")
return IF(CONTAINSSTRING(_allsold,_allseleted),1,0)
And apply it to filter pane, set as "is 0":
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Use CROSSFILTER(,,none) in your measure to emulate a disconnected table. Then you can show dimension values that do not have facts. (for simple scenarios you can also use the "Show items with no data" flag.)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
73 | |
71 | |
54 | |
38 | |
31 |
User | Count |
---|---|
71 | |
64 | |
60 | |
50 | |
45 |