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.
In Power BI Report Builder, I want some columns to be hidden, but have them show up when exporting to Excel.
So far I've tried:
And that hides the columns from the report. But then when exported to Excel - those columns stay hidden / aren't exported, when I do want them to appear in the export.
Solved! Go to Solution.
Hey @mmace1 , this is odd.
This is a very simple table without groups (just columns):
The little text box on the right contains this expression (consider it a sanity check):
= Globals.RenderFormat.Name
As I want to hide the column Color Name if I do not export to Excel, I select the column
I change the visibility of the column
The option
The Expression
=iif(Globals.RenderFormat.Name = "EXCELOPENXML", false, true)
Maybe this is important
This how the report looks inside my workspace:
And this is how the Excel file looks after exporting (of course the screenshots show just a fraction of rows)
Hopefully, this helps to tackle your challenge.
Regards,
Tom
Hey @mmace1 ,
I'm wondering if this expression will change anything:
=IIF(UCase(Globals!RenderFormat.Name) <> "IMAGE",true,false)
Hopefully, this provides what you are looking for.
Regards,
Tom
@TomMartens Same behavior - that formula also hides the columns, but those hidden columns still don't show up when exporting to Excel.
Hey @mmace1 , this is odd.
This is a very simple table without groups (just columns):
The little text box on the right contains this expression (consider it a sanity check):
= Globals.RenderFormat.Name
As I want to hide the column Color Name if I do not export to Excel, I select the column
I change the visibility of the column
The option
The Expression
=iif(Globals.RenderFormat.Name = "EXCELOPENXML", false, true)
Maybe this is important
This how the report looks inside my workspace:
And this is how the Excel file looks after exporting (of course the screenshots show just a fraction of rows)
Hopefully, this helps to tackle your challenge.
Regards,
Tom
@TomMartens I don't know what in your instructions is different from what I was doing, but it works now - thanks!
I'm apparently at the "Instructor: Now click the start menu" "User: It doesn't do anything when I click it" stage of report builder.
Ha, I exactly know what you are talking about.
Nevertheless, it works now 👍
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
80 | |
67 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |