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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
unnijoy
Post Partisan
Post Partisan

Horizontal text display with data

I have a data table like below.

unnijoy_0-1686739029679.png

I want to get the name's and corresponding sales amount horizontally as shown below.

unnijoy_1-1686739243350.png

 

how can we show the data like this.



 

1 ACCEPTED SOLUTION
ppm1
Solution Sage
Solution Sage

Here's an example that shows one way to do it.

ppm1_0-1686743700782.png

This measure is in the card visual below the table.

TotalsString =
VAR CitySales =
    ADDCOLUMNS ( DISTINCT ( Stores[City] ), "cSales", [Total Sales] )
RETURN
    "Total Sales: "
        & CONCATENATEX (
            CitySales,
            Stores[City] & ": "
                & FORMAT ( [cSales], "$0,,.0M" ),
            " "
        )

 

Pat

 

Microsoft Employee

View solution in original post

3 REPLIES 3
ppm1
Solution Sage
Solution Sage

Here's an example that shows one way to do it.

ppm1_0-1686743700782.png

This measure is in the card visual below the table.

TotalsString =
VAR CitySales =
    ADDCOLUMNS ( DISTINCT ( Stores[City] ), "cSales", [Total Sales] )
RETURN
    "Total Sales: "
        & CONCATENATEX (
            CitySales,
            Stores[City] & ": "
                & FORMAT ( [cSales], "$0,,.0M" ),
            " "
        )

 

Pat

 

Microsoft Employee

Hi @ppm1 the solution that you gave me is working.
Can you please tell me how i can make "Total Slaes" Bold. Is it possible to do it.

Can't think of an easy way to do that. Probably possible with the HTML viewer visual.

 

Pat

Microsoft Employee

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.