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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
tomtang
Helper III
Helper III

% format Went haywire after publishing to Power BI Service

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)

tomtang_1-1638873572338.png

 

1 ACCEPTED SOLUTION
tomtang
Helper III
Helper III

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 )
    )

 

View solution in original post

3 REPLIES 3
tomtang
Helper III
Helper III

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 )
    )

 

amitchandak
Super User
Super User

@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!

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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