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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors