cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JeromeC Frequent Visitor
Frequent Visitor

show "cheapest" vendor.

Hi Team,

I have a table below from which i'd like to show the cheapest supplier  presented on a card. The expected answer is just "A" because the price is "1"

itempricesupplier
a1A
b1A
c3C
d4D


However, the result I get is "A , A". I am using the measure 

 
1lowest price = 
CONCATENATEX(TOPN ( 1, 'table',[price], ASC ), 'table'[Supplier], ", ")
I wish to only see "A" once, as in only 1 supplier even if there are more than 2 suppliers with the lowest price. 

Please help, cheers. 
1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: show "cheapest" vendor.

Hi @JeromeC 

 

Try this:

 

1lowest price = 
CONCATENATEX(CALCULATETABLE(DISTINCT('table'[Supplier]),TOPN ( 1, 'table',[price], ASC )), 'table'[Supplier], ", ")

View solution in original post

1 REPLY 1
Super User
Super User

Re: show "cheapest" vendor.

Hi @JeromeC 

 

Try this:

 

1lowest price = 
CONCATENATEX(CALCULATETABLE(DISTINCT('table'[Supplier]),TOPN ( 1, 'table',[price], ASC )), 'table'[Supplier], ", ")

View solution in original post

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 123 members 1,456 guests
Please welcome our newest community members: