Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
SvenvandenHil
Frequent Visitor

Check Pricelist to another pricelist on item

I have a table with itemnumbers and there prices. Only there are multiple pricelists. In below PowerBI file there is an example for 6 of those pricelists on itemnumber level. I want to check 1 pricelist to another pricelist and give a percentage difference.

TestPrices 

 

I made 2 distinct tables to use in a filter visual. And made 2 DAX formulas to create a price for both filter tables. But the DAX formulas now also filter on both filter visuals. But what I want to achieve is that if I use filter 1, the column PriceDim1 changes and PriceDim2 will be zero. And if I use filter 2, PriceDim2 changes and PriceDim1 is zero. So that I can see the differences between 2 pricelists. And the next thing would be nice is to calculate this difference in absolute and percentages amounts, in an extra column.

SvenvandenHil_0-1722255664868.png

SvenvandenHil_1-1722256006098.pngSvenvandenHil_2-1722256047754.png

 



1 ACCEPTED SOLUTION
AlanFredes
Resolver IV
Resolver IV

Hi @SvenvandenHil ,

 

Given how filtering context works in Power and the current relationship setup you have in the model it isn't possible to build what you are looking for.

But Power BI has a DAX function that allows you to filter (or relate) a table without using relationships through the TREATAS function.

You would need to break the relationships you built and add in TRETAS to the DAX measures you created. There will also be a restriction in the PriceCustomerGroups you filter forcing you to always have one selected.

AlanFredes_0-1722261570835.png

 

I made the changes in your file and you can find the updated version in the bellow link.

20240729 TestPrices Alan Fredes 

 

Let me know if you have any questions.

 

Regards,
Alan Fredes

Did I answer your question? Mark my post as a solution!

View solution in original post

2 REPLIES 2
AlanFredes
Resolver IV
Resolver IV

Hi @SvenvandenHil ,

 

Given how filtering context works in Power and the current relationship setup you have in the model it isn't possible to build what you are looking for.

But Power BI has a DAX function that allows you to filter (or relate) a table without using relationships through the TREATAS function.

You would need to break the relationships you built and add in TRETAS to the DAX measures you created. There will also be a restriction in the PriceCustomerGroups you filter forcing you to always have one selected.

AlanFredes_0-1722261570835.png

 

I made the changes in your file and you can find the updated version in the bellow link.

20240729 TestPrices Alan Fredes 

 

Let me know if you have any questions.

 

Regards,
Alan Fredes

Did I answer your question? Mark my post as a solution!

Hi Alan,

 

Thank you, worked like a charm.

 

Kind regards,

Sven

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.