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
ChubbChubb
Helper I
Helper I

DAX formula not working

I'm triyng to add a subtitle to acard to display national data.

 

The formula that works looks like this 

KPI Attendance Target = format(Product('Academy Info'[Attendance Target]),"KPI #%"&""). It is turning a percentage column into a text column to then use as a subtitle on the card.
 
I have tried to use the same formula for a different set of data 
Nat Ebacc Entry = format(Product('National Headline Data'[Nat Ebacc Entry]),"Nat #.#%"&"")
 
and instead I get this
ChubbChubb_1-1706785173673.png

 

I find that If I change the "Nat" to "KPI" it works fine, but if I use the letters N or S they get changed to 41&17 and code doesn't work.

 

I have checked that the two source columns are set up exactly the same way, just can't fathom it out?

 

TIA 


 

 
1 ACCEPTED SOLUTION
olgad
Super User
Super User

Hi, dont place NAT  into format function

 "Nat " & format(Product('Academy Info'[Attendance Target]," #%"&"")

DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

View solution in original post

2 REPLIES 2
olgad
Super User
Super User

Hi, dont place NAT  into format function

 "Nat " & format(Product('Academy Info'[Attendance Target]," #%"&"")

DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

Thank you for that, I had copied the forumla from somewhere else so wasn't sure on it. Do you know why it was replacing the letters for number?

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.