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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
AbbasG
Memorable Member
Memorable Member

Show minimum price with quantity in a different page

Hello All,

 

I have the data of suppliers, where I have highlighted the minimum price from each supplier as below.

 

  S1S2S3
ModelDescqtypriceqty priceqtyprice
AAAAA20$30.007$29.0080$23.00
BBBBB200$25.0030$19.00100$20.00
CCCCC155$29.00300$31.00120$35.00
DDDDD0$22.00600$25.00300$27.00

 

On the next page. I want to get the data of suppliers whose, price is minimum and qty is greater than 0. (if the qty is zero I need to get the next minimum price).

 

ModelDescqtypriceSupplier
AAAAA8023S3
BBBBB3019S2
CCCCC15529S1
DDDDD60025S2

 

Please let me know how can I do this.

 

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @AbbasG 

 

Assume your original table is like below

vjingzhang_1-1654764432699.png

 

You can create the following measures. Display these measures in a table or matrix visual. 

 

New Price = MINX(FILTER('Table','Table'[Qty] > 0),'Table'[Price])

 

New Qty = 
VAR _price = [New Price]
RETURN
MAXX(FILTER('Table','Table'[Price] = _price),'Table'[Qty])
New Supplier = 
VAR _price = [New Price]
RETURN
MAXX(FILTER('Table','Table'[Price] = _price),'Table'[Supplier])

vjingzhang_0-1654764188494.png

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

4 REPLIES 4
AbbasG
Memorable Member
Memorable Member

@Fowmy Thank you mate for your efforts too. 🙂

v-jingzhang
Community Support
Community Support

Hi @AbbasG 

 

Assume your original table is like below

vjingzhang_1-1654764432699.png

 

You can create the following measures. Display these measures in a table or matrix visual. 

 

New Price = MINX(FILTER('Table','Table'[Qty] > 0),'Table'[Price])

 

New Qty = 
VAR _price = [New Price]
RETURN
MAXX(FILTER('Table','Table'[Price] = _price),'Table'[Qty])
New Supplier = 
VAR _price = [New Price]
RETURN
MAXX(FILTER('Table','Table'[Price] = _price),'Table'[Supplier])

vjingzhang_0-1654764188494.png

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

@v-jingzhang  thank you so much for taking your time and assisting. It really helped me in getting the job done.

Fowmy
Super User
Super User

@AbbasG

How is your data organized, is it as follows?

Fowmy_0-1654251660291.png

 



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.