A current limitation in Power BI SWITCH measures (and all Power Pivot actually) is that a SWITCH measure must have a single format. It is currently not possible to conditionally format the measure result based on any criteria - it is one single format only. There are valid use cases where you may want to change the format of the SWITCH measure depending on the result. Consider the following SWITCH statement myMeasure = SUMX(MeasureTable,switch([selected measure], 1,[Total Sales], 2,[Total Cost], 3,[Total Margin], 4,[Chg Sales vs LY %] )) The first 3 results are all currency format, but the last result is a percentage format. This currently can't be controlled. I would like to see an optional 3rd parameter in the SWITCH statement to set an alternate number format.
78 Comments
- do1New MemberAn option to "inherit" the formatting of the source measure would be nice. But it would be even better if a more general solution was provided, similar to how SCOPE statements work in SSAS multidimensional.
- fbcideas_migusrNew MemberGreat idea - I use this feature a lot on a Power Pivot Disconnected Slicer and it would be great to be able to do the same with Power BI.
- ffarah1New MemberThis change would make things a lot simpler and the switch option way more powerful and useful
- fbcideas_migusrNew MemberHere is a simple demo of the problem http://exceleratorbi.com.au/wp-content/uploads/2016/07/switch-measure.gif
- fbcideas_migusrNew MemberMust have, agree. Have several scenarios where it would be the best solution.
- Sohail
Advocate IV
Must have Regards sohail - HansMostafavi
Advocate I
100% agree - DirectorAlwynNew MemberEven more than just the percentage vs. currency, there are lots of situations where you might want text or numbers, especially for error/out of bounds handling where this would be very helpful.
- joeryNew MemberGreat idea, I would love to see this!
- fbcideas_migusrNew Member'@Cheries Mewengkang, what you described will render the number as a text string in a table. This is not the same as changing the number format. If you change the number to a text string, you can't use it in charts or any other place that requires numbers (eg calcs)
Recent ideas
Allow Individual Activity Execution Within a Pipeline Without Running the Entire Pipeline
Problem Statement Currently, when a Microsoft Fabric Data Pipeline contains multiple Semantic Model Refresh activities, selecting an individual activity and clicking Run triggers the entire pipeline...trmei10 hours agoNew MemberNew17Views1like0CommentsBack-button feature to clear selected drillthrough filter value
As drillthrough function we use a filter and we give value for it from other report page. I click back-button and it will take me back to where I was before. In the background filter value stays unch...tondeli133710 hours agoNew MemberNeeds Votes1.6KViews661likes20CommentsHelp tooltip & Visual tooltip text formatting options.
Please add more text formatting options to the Help tooltip text and Visual tooltip text features. At present only Font, size, colour , background, transparency options are available. It will be bet...110442111 hours agoNew MemberNew1.2KViews63likes6CommentsSupport of SSAS formatting in Power BI visuals tooltips
Hi Team, The thing here is that most of all visuals tooltips not show proper format of a measure, which was formatted on SSAS side. Example. I have SSAS database with an Adventure Works cube. I c...ruslan_zolotuk211 hours agoNew MemberNeeds Votes73Views2likes2CommentsFormatting results of count aggregate in tooltips for PowerBI
The feature that I'm requesting is the ability to format the results of a count aggregation in tooltips. For example, rather thank displaying a count of all members as 123456789 in the tooltip, we c...szewczykrv11 hours agoNew MemberNew142Views2likes2Comments