Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi Everyone!
I need to select only 1 lab and N products for many Labs. I need to find the price per month of my product (my_price) and compare to the total_prod_price of each prod to find the difference (%) between my product and the others.
Sample file: https://www.dropbox.com/s/jh9ctxatt079dvq/Sample%28Updated2%29%20%281%29.pbix?dl=0
Expected output:
Product A, my _price=1600, total_prod_price = 1100, dif = 1100/1600, month = Oct
Product B, my _price=1600, total_prod_price = 1600, dif = 1600/1600, month = Oct
Product C, my _price=1600, total_prod_price = 2100, dif = 2100/1600, month = Oct
Thanks!
Solved! Go to Solution.
Hi @orghn ,
1.but I cant delete that relationship. You could create a new Lab table for the slicer:
New Table = VALUES(Lab[Lab Name])Measure =
var _allProds=SUMMARIZE(FILTER(ALL('Product'),[LabName] =MAX('New Table'[Lab Name])),[ProductName])
return CALCULATE(SUM('Price'[Price]),FILTER(ALLSELECTED('Price'),[Product] in _allProds))diff = [Measure]/[Total_Prod_Price]
2. And I also need to select N months So what's your expected when select multiple months?
On my side:
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 @orghn ,
1.but I cant delete that relationship. You could create a new Lab table for the slicer:
New Table = VALUES(Lab[Lab Name])Measure =
var _allProds=SUMMARIZE(FILTER(ALL('Product'),[LabName] =MAX('New Table'[Lab Name])),[ProductName])
return CALCULATE(SUM('Price'[Price]),FILTER(ALLSELECTED('Price'),[Product] in _allProds))diff = [Measure]/[Total_Prod_Price]
2. And I also need to select N months So what's your expected when select multiple months?
On my side:
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 @orghn ,
Based on my understanding,
If so,please firstly delete the relationship between Lab Table and Product Table:
Then create the measure:
my price measure =
var _allProds=SUMMARIZE(FILTER(ALL('Product'),[LabName] =MAX('Lab'[Lab Name])),[ProductName])
return CALCULATE(SUM('Price'[Price]),FILTER(ALLSELECTED('Price'),[Product] in _allProds))
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 @Anonymous ,
Thanks for your help but I cant delete that relationship. And I also need to select N months
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 8 | |
| 7 |