The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi all,
Not sure anyone encounters below, all the % went haywire once published to the Power BI service.
Also, the color theme went off.
I've tried republishing a few times, but it doesn't work.
I Hope can get some guidance, thank you!😀
(Left side is the power bi service while the right side is power bi desktop)
Solved! Go to Solution.
Hi,
Upon a few more tests and errors.
I solve the issue, but I still can't figure out why it did work before, but not now. It's mainly caused by my scaling calculation group, so my solution is just to change the below DAX in my scaling calculation group.
Below is the old DAX in my scaling calculation group:
VAR _SelectedItem = SELECTEDMEASURENAME () //Below are the measure won't be scaled VAR _NWCDays = OR ( CONTAINSSTRING ( _SelectedItem, "DSO" ), CONTAINSSTRING ( _SelectedItem, "DIO" ) || CONTAINSSTRING ( _SelectedItem, "DPO" ) ) VAR _Percentage = CONTAINSSTRING ( _SelectedItem, "%" ) VAR _RelativeVariance = CONTAINSSTRING ( _SelectedItem, "RelativeVar" ) VAR _PercentagePoint = CONTAINSSTRING ( _SelectedItem, "PercentagePoint" ) VAR _Rank = CONTAINSSTRING ( _SelectedItem, "Rank" ) VAR _DynamicText = CONTAINSSTRING ( _SelectedItem, "Dynamic" ) RETURN SWITCH ( TRUE (), _NWCDays, SELECTEDMEASUREFORMATSTRING (), _Percentage, SELECTEDMEASUREFORMATSTRING (), _RelativeVariance, SELECTEDMEASUREFORMATSTRING (), _PercentagePoint, SELECTEDMEASUREFORMATSTRING (), _Rank, SELECTEDMEASUREFORMATSTRING (), _DynamicText, SELECTEDMEASUREFORMATSTRING (), DIVIDE ( SELECTEDMEASURE (), 1000000 ) )
Below is the new DAX in my scaling calculation group:
VAR _SelectedItem = SELECTEDMEASURENAME () //Below are the measure won't be scaled VAR _NWCDays = OR ( CONTAINSSTRING ( _SelectedItem, "DSO" ), CONTAINSSTRING ( _SelectedItem, "DIO" ) || CONTAINSSTRING ( _SelectedItem, "DPO" ) ) VAR _Percentage = CONTAINSSTRING ( _SelectedItem, "%" ) VAR _RelativeVariance = CONTAINSSTRING ( _SelectedItem, "RelativeVar" ) VAR _PercentagePoint = CONTAINSSTRING ( _SelectedItem, "PercentagePoint" ) VAR _Rank = CONTAINSSTRING ( _SelectedItem, "Rank" ) VAR _DynamicText = CONTAINSSTRING ( _SelectedItem, "Dynamic" ) RETURN SWITCH ( TRUE (), _NWCDays, SELECTEDMEASURE (), _Percentage, SELECTEDMEASURE (), _RelativeVariance, SELECTEDMEASURE (), _PercentagePoint, SELECTEDMEASURE (), _Rank, SELECTEDMEASURE (), _DynamicText, SELECTEDMEASURE (), DIVIDE ( SELECTEDMEASURE (), 1000000 ) )
Hi,
Upon a few more tests and errors.
I solve the issue, but I still can't figure out why it did work before, but not now. It's mainly caused by my scaling calculation group, so my solution is just to change the below DAX in my scaling calculation group.
Below is the old DAX in my scaling calculation group:
VAR _SelectedItem = SELECTEDMEASURENAME () //Below are the measure won't be scaled VAR _NWCDays = OR ( CONTAINSSTRING ( _SelectedItem, "DSO" ), CONTAINSSTRING ( _SelectedItem, "DIO" ) || CONTAINSSTRING ( _SelectedItem, "DPO" ) ) VAR _Percentage = CONTAINSSTRING ( _SelectedItem, "%" ) VAR _RelativeVariance = CONTAINSSTRING ( _SelectedItem, "RelativeVar" ) VAR _PercentagePoint = CONTAINSSTRING ( _SelectedItem, "PercentagePoint" ) VAR _Rank = CONTAINSSTRING ( _SelectedItem, "Rank" ) VAR _DynamicText = CONTAINSSTRING ( _SelectedItem, "Dynamic" ) RETURN SWITCH ( TRUE (), _NWCDays, SELECTEDMEASUREFORMATSTRING (), _Percentage, SELECTEDMEASUREFORMATSTRING (), _RelativeVariance, SELECTEDMEASUREFORMATSTRING (), _PercentagePoint, SELECTEDMEASUREFORMATSTRING (), _Rank, SELECTEDMEASUREFORMATSTRING (), _DynamicText, SELECTEDMEASUREFORMATSTRING (), DIVIDE ( SELECTEDMEASURE (), 1000000 ) )
Below is the new DAX in my scaling calculation group:
VAR _SelectedItem = SELECTEDMEASURENAME () //Below are the measure won't be scaled VAR _NWCDays = OR ( CONTAINSSTRING ( _SelectedItem, "DSO" ), CONTAINSSTRING ( _SelectedItem, "DIO" ) || CONTAINSSTRING ( _SelectedItem, "DPO" ) ) VAR _Percentage = CONTAINSSTRING ( _SelectedItem, "%" ) VAR _RelativeVariance = CONTAINSSTRING ( _SelectedItem, "RelativeVar" ) VAR _PercentagePoint = CONTAINSSTRING ( _SelectedItem, "PercentagePoint" ) VAR _Rank = CONTAINSSTRING ( _SelectedItem, "Rank" ) VAR _DynamicText = CONTAINSSTRING ( _SelectedItem, "Dynamic" ) RETURN SWITCH ( TRUE (), _NWCDays, SELECTEDMEASURE (), _Percentage, SELECTEDMEASURE (), _RelativeVariance, SELECTEDMEASURE (), _PercentagePoint, SELECTEDMEASURE (), _Rank, SELECTEDMEASURE (), _DynamicText, SELECTEDMEASURE (), DIVIDE ( SELECTEDMEASURE (), 1000000 ) )
@tomtang , Clear browser cache, refresh and try.
Republish -> Clear browser cache, refresh and try.
if this does not resolve, you might have to log an issue
@amitchandak Thanks for the response, I've tried to republish and clear the cache, also refreshed again in the app and report. Still not working!
Thank you so much!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
80 | |
71 | |
51 | |
50 |
User | Count |
---|---|
123 | |
119 | |
76 | |
64 | |
60 |