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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
SMBM
Frequent Visitor

Only Show Name of Selected Vendor - Show Alias for Other Vendors

I have a Fact table showing transactions, which includes a vendor number key.  It is joined to a dimension table with all Vendor names.

 

We use this to show market share by aggregating all revenue by vendor name with a % of Grand Total.  This works fine for internal use where we want to see all vendor names listed.

 

When we discuss with vendors, however, we want to show them where they rank in market share, but we do NOT want to show the names of other vendors.

 

What I am trying to do is be able to select a vendor, then have the market share table show the name of the selected vendor, but have all of the other vendors show an unidentifiable alias (I can add an alias column in the vendor table).

 

It would look like the follwing:

With No Vendor Selected

VendorRevenue% of GT
Chevrolet$1,250,00062.5
Ford$500,00025.0
Toyota$250,00012.5

 

With Ford Selected as Vendor

VendorRevenue% of GT
ALIAS-1$1,250,00062.5
Ford$500,00025.0
ALIAS-2$250,00012.5

 

Obviously, if I select Chevrolet instead of Ford, I'd like it to show an alias for Ford and display Chevrolet. 

 

I'm kind of stumped on how to pull this off.  Any help is appreciated!

3 REPLIES 3
Anonymous
Not applicable

Hi @SMBM ,

Below is my test data:

vxiandatmsft_0-1723603031108.png

You can create a new table:

Table 2 = VALUES('Table'[Vendor])

The following DAX might work for you:

Measure = IF(ISFILTERED('Table 2'[Vendor]) , IF(SELECTEDVALUE('Table'[Vendor]) = SELECTEDVALUE('Table 2'[Vendor]) , SELECTEDVALUE('Table 2'[Vendor]) , SELECTEDVALUE('Table'[Name])) , SELECTEDVALUE('Table'[Vendor]))

The final output will like this:

vxiandatmsft_1-1723603071344.pngvxiandatmsft_2-1723603085507.png

Best Regards,

Xianda Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@Anonymous 

This seems to work just as requested!  I do have a use case where I may select multiple vendors which doesn't quite seem to work with this measure.  I'm trying to work out what tweaks would allow it to support multiple selections, but if you have any suggestions, I'd be grateful to hear them.

Thank you for this.  I'm going to try to implement this today and will report back on how it works!  I appreciate you taking the time.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

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.