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
Anonymous
Not applicable

% and number values in single column

how do make matrix for the following measures in a column

 

Revenue         - 123123

Gross Profit    -   24624.60

Gross Margin  - 20%

Net Profit       - 9234.225

Net Margin - 7.5%

 

 

2 REPLIES 2
mmanicakvasagam
New Member

 

Error came 

 i used following Dax, please check and advice 
 
Amt =
SWITCH(
    TRUE(),
    MLayout[name] = "Revenue", [Revenue],
    MLayout[name] = "Gros Profit", [GP],
    MLayout[name] = "Gros Margin", [GP Margin]
)

 

 

Endiii
Frequent Visitor

The question is what design you would like to get. 
If simple one where values are displayed as rows like:

Endiii_1-1678182713537.png

 

Then your formula would be:

Gross Profit & Margin = 'Table'[Gross Profit] & "  " & FORMAT('Table'[Gross Margin],"Percent")

and 

Net Profit & Margin = 'Table'[Net Profit] & "  " & FORMAT('Table'[Net Margin],"Percent")

 

If you want to achiev something else, please provide more details

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.