Forum Discussion
Powerbi Service Export Issue--Export Excel
- 11 months ago
minhuan Workaround: Preserve Display Formatting in Export
To ensure that Excel shows "<10" instead of the actual number, you can modify your measure to return text instead of numeric values:
_x = SWITCH( TRUE(), ISBLANK([measure]), BLANK(), [measure] < 10, "<10", FORMAT([measure], "General") )
This forces Power BI to treat the output as text, which will be preserved during export. However, note that this may limit sorting or aggregation in visuals.
Thanks a lot, When I use export current layout, it still doesn't work.
I can't disable all export, so I think I need to use admin portal to control export type. I think this is a feature bug.
Hi minhuan ,
This isn’t a bug, even with Export current layout, Power BI exports the underlying model values before formatting. That’s why <10> is replaced by the original number.
If you want <10> to show up in the export, make the measure return text in DAX, such as:
_x =
SWITCH(
TRUE(),
ISBLANK([measure]), BLANK(),
[measure] < 10, "<10",
FORMAT([measure], "0")
)
This makes the value text so the export matches the visual. If you need numeric sorting, create a second numeric column or measure and use Sort By Column.
To restrict export types, go to Admin Portal - Tenant settings - Export and sharing settings and limit formats (like CSV) for certain security groups.
- v-sshirivolu1 year agoCommunity Support
Hi minhuan ,
I hope the information provided above assists you in resolving the issue. If you have any additional questions or concerns, please do not hesitate to contact us. We are here to support you and will be happy to help with any further assistance you may need.
- v-sshirivolu1 year agoCommunity Support
Hi minhuan ,
I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you
- v-sshirivolu11 months agoCommunity Support
HI minhuan ,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.