Forum Discussion

tyswizzle's avatar
tyswizzle
Advocate I
2 years ago

Custom Data Label missing from Power BI Service but present on Desktop

Update Jan 2024 -- I believe the issues are getting worse 

Hi! 

I've only found one post that relates to this topic, but the solution doesn't seem to work for me. https://community.fabric.microsoft.com/t5/Issues/Custom-Label-for-Data-Label-not-working-on-PowerBI-Service/idi-p/3315992

Similar to the referenced post, I created a custom data label to control when/where labels are shown.  The screenshots below depcit the same page on Service and Desktop but the custom labels are only present on desktop. DesktopService

 

The visual settings for the data label:

 

And the measure itself: 

DataLabel.Safety.TPIR =
    var _TPIR = [Safety.TPIR.OverTime]
    var _month = MAX(slicer_Dates[Month])
    var _mod = 3
    var _currMonthMod =
        MOD(
            MONTH(
                MAX(slicer_ProjectInfo[date.Safety.Latest])
            ),
            _mod
        )
    var _formattedTPIR =
        IF(
            _TPIR > [Graph.Max.Safety.TPIR],
            ">"& FORMAT([Graph.Max.Safety.TPIR], "#,##0.00"),
            FORMAT(_TPIR, "#,##0.00")
        )
return
    IF(
        ISBLANK(_TPIR) || MOD(_month, _mod) <> _currMonthMod,
        BLANK(),
        _formattedTPIR
    )
 
I need custom labels so I can constrain the bounds without losing information while maintaining Visual clarity through a limited number of labels. 

Any ideas why the custom label doesn't appear in Service?
 
Thanks for any and all help!

49 Replies