cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jellis1971
Helper II
Helper II

Dimension Description as a Column

Hi:

I have a couple of columns in a Power BI Report, both representing ERP's dimension codes (dimension values).

I want to add the description of the dimension values, but I only want it to display the description for one of these two codes (columns). 

In the dimensions table, the "description" is the "Display Name".

How do I place an "if, then" statement in Power BI to "tell" the column to only display the description for the one code (column) that I have in mind?

Thanks!

jellis1971

1 ACCEPTED SOLUTION
selimovd
Super User
Super User

Hey @jellis1971 ,

 

I didn't fully understand how you want to add the description. Can you explain that better?

If the description exists in a column and you only want to change the visibility, the following approach for a calculated column should work:

Display Name =
IF (
    myTable[dimension code]
        IN {
        "Code 123",
        "Code 456"
    },
    myTable[dimension discription]
)

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

View solution in original post

2 REPLIES 2
selimovd
Super User
Super User

Hey @jellis1971 ,

 

I didn't fully understand how you want to add the description. Can you explain that better?

If the description exists in a column and you only want to change the visibility, the following approach for a calculated column should work:

Display Name =
IF (
    myTable[dimension code]
        IN {
        "Code 123",
        "Code 456"
    },
    myTable[dimension discription]
)

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Hi Denis:

It is kind of like what you said.  The dimension code is "Facility", and I'd like for the dimension values for "Facility" to display instead of the ones for other dimension codes such as "Region".

jellis1971

Helpful resources

Announcements
June 2022 update 768X460.jpg

Check it out!

Click here to read more about the June 2022 updates!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors
Top Kudoed Authors