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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Soldado
Frequent Visitor

Table matrix

Hello Community

 

Is there a way to keep the format of the values in a table matrix although the formats are different?

For instance, i have a table in excel with a list of KPI's with its corresponding value. Some of the KPI's are numbers (double with decimals) and other are percentage (%). 

 

How can the KPI;s be visualized in the table matrix keeping the format? 

I tried to do it with function "SWITCH" linked to a slicer, however when all the options in the slicer are unchecked, the table shows all the values as numbers (whole number), % and decimals got removed.

 

this is the code i am using

 

Calculation = SWITCH(
TRUE(),
[User selection]="DSO (days)",[KPIaverage] / 1000,
[User selection]="Short payments >60d (%)",format([KPIaverage],"percent"),
[User selection]="Short payments >60d ($K)",FORMAT([KPIsum],"Standard"),
[User selection]="Net Sales",FORMAT([KPIsum] ,"Standard"),
[User selection]="Debit AR > 60d ($K)",FORMAT([KPIsum],"Standard"),
[User selection]="Debit AR > 60d (%)",format([KPIaverage],"percent"),
[User selection]="Invoices Current (%)",format([KPIaverage],"percent"),
([KPIsum]
))
 
i appreciate your help
2 REPLIES 2
Anonymous
Not applicable

HI @Soldado,

AFAIK, the current one field does not support display/return multiple formats. You can use the format function to custom the output format but it will also convert the data type to the text.
Regards,

Xiaoxin Sheng

StefanoGrimaldi
Resident Rockstar
Resident Rockstar

get that dax inside a varaible and return it witha  format function example: 

calculation: 

var calculation = DAX YOU HAD

return formato(calculation, formatcode)





Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.