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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

Line break on Advance Card

Hi, guys

I have developed this DAX formula to calculate some performance indicators for my help desk agents.

Formula:

AgentCard = 
VAR xOpen = CALCULATE(COUNTROWS(zendesk), zendesk[status] = "Open")
VAR xSolved = CALCULATE(COUNTROWS(zendesk), zendesk[status] = "Solved")
VAR xOnhold = CALCULATE(COUNTROWS(zendesk), zendesk[status] = "On-hold")
VAR xScaled = CALCULATE(COUNTROWS(zendesk), zendesk[status] = "Scaled")
VAR xPending = CALCULATE(COUNTROWS(zendesk), zendesk[status] = "Pending")
VAR FRESTBMC =
    MAXX(
        SUMMARIZE(zendesk, zendesk[First resolution time brackets], "Count", COUNT(zendesk[First resolution time brackets])),
        [Count]
    )
VAR FRESTBMR =
    MAXX(
        FILTER(
            SUMMARIZE(zendesk, zendesk[First resolution time brackets], "Count", COUNT(zendesk[First resolution time brackets])),
            [Count] = FRESTBMC
        ),
        zendesk[First resolution time brackets]
    )
VAR FRTBMC =
    MAXX(
        SUMMARIZE(zendesk, zendesk[First reply time brackets], "Count", COUNT(zendesk[First reply time brackets])),
        [Count]
    )
VAR FRTBMR =
    MAXX(
        FILTER(
            SUMMARIZE(zendesk, zendesk[First reply time brackets], "Count", COUNT(zendesk[First reply time brackets])),
            [Count] = FRTBMC
        ),
        zendesk[First reply time brackets]
    )
VAR FRTBUMC =
    MAXX(
        SUMMARIZE(zendesk, zendesk[Full resolution time brackets (Unsorted)], "Count", COUNT(zendesk[Full resolution time brackets (Unsorted)])),
        [Count]
    )
VAR FRTBUMR =
    MAXX(
        FILTER(
            SUMMARIZE(zendesk, zendesk[Full resolution time brackets (Unsorted)], "Count", COUNT(zendesk[Full resolution time brackets (Unsorted)])),
            [Count] = FRTBUMC
        ),
        zendesk[Full resolution time brackets (Unsorted)]
    )
RETURN
    "Open: " & IF(xOpen > 0, xOpen, 0)  & UNICHAR(10) &
    "Solved: " & IF(xSolved > 0, xSolved, 0) & UNICHAR(13) & UNICHAR(10) &
    "On-hold: " & IF(xOnhold > 0, xOnhold, 0) & UNICHAR(13) & UNICHAR(10) &
    "Scaled: " & IF(xScaled > 0, xScaled, 0) & UNICHAR(13) & UNICHAR(10) &
    "Pending: " & IF(xPending > 0, xPending, 0) & UNICHAR(13) & UNICHAR(10) &
    "First reply time brackets: " & FRTBMR & " | " & IF(FRTBMC>0,FRTBMC,0) & UNICHAR(13) & UNICHAR(10) &
    "Full resolution time brackets: " & FRTBUMR & " | " & IF(FRTBUMC>0,FRTBUMC,0) & UNICHAR(13) & UNICHAR(10) &
    "First resolution time brackets: " & FRESTBMR & " | " & IF(FRESTBMC>0,FRESTBMC,0)

I have placed it on a card and it works without problems but I can not align the data to the left since this visualization does not have that property.

I have found another visualization called Advance Card that if it gives me what I am looking for but for some reason the line break does not work.

Cards.png

I would like to know what you think about it and how you think I can solve this challenge.

Thanks a lot

1 REPLY 1
DataInsights
Super User
Super User

@adumith,

 

The June 2023 release of PBI Desktop has a new card visual with the ability to align data to the left. It's a preview feature, so you'll need to enable it.

 

https://powerbi.microsoft.com/en-us/blog/power-bi-june-2023-feature-summary/#post-23927-_Toc13701546... 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.