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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
smartcompany
Frequent Visitor

How to Show a Conditional Column on a Dash Table?

Hello, guys! How are you doing? 

 

I have a single report for many different clients (we separate them by clientID on Embedded).

 

So, there is a client who needs to see a column called "CostCenter" in a table, but he is the only one who needs to see it. 

 

There is a way to show this coloumn just for him? I mean, I don't want a empty column for other clients.

 

Thank you for your help! ;D

1 ACCEPTED SOLUTION

HI @smartcompany,

Perhaps you can configure a custom replace function in the query editor and use parameters to control when to replace these field values to blank.

Solved: Replace value in Power Query based on condition - Microsoft Power BI Community

#"Replaced Value" = Table.ReplaceValue(#"Changed Type",each [Column],each if parameter= true then "" else [Column],Replacer.ReplaceText,{"Column"})

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @smartcompany,

Did you mean the object-level security? If that is the case, please refer to the following document to know more about this feature:

Announcing public preview of Object-Level Security in Power BI | Microsoft Power BI Blog | Microsoft...

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Hello! Thank you for your answer!

 

But, actually, I'm not talking abaout OLS. As I said, we use Power BI Embedded and OLS dosen't work with that (as far as I know).

 

I need something like a conditional filter. For example: If clientID has "hasCostCenter" (boolean value), then show this column on a table in dashboard. 

HI @smartcompany,

Perhaps you can configure a custom replace function in the query editor and use parameters to control when to replace these field values to blank.

Solved: Replace value in Power Query based on condition - Microsoft Power BI Community

#"Replaced Value" = Table.ReplaceValue(#"Changed Type",each [Column],each if parameter= true then "" else [Column],Replacer.ReplaceText,{"Column"})

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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