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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
NILESHSURASKAR
Frequent Visitor

dax works correctly for the card but not in charts (bar,column,pie)

Final Sell Price =
VAR B = SUM('WIP Data'[Final Sell Price     (Total)])
VAR A = [Final Sell Price USD (Total)]
VAR SelectedAffiliate = SELECTEDVALUE('WIP Data'[PMI Affiliate])
RETURN
IF(
    SelectedAffiliate = "HK" ||
    SelectedAffiliate = "IN" ||
    SelectedAffiliate = "MY" ||
    SelectedAffiliate = "ID" ||
    SelectedAffiliate = "VN" ||
    SelectedAffiliate = "PH",
    MAX('WIP Data'[Currency]) & " " & FORMAT(B, "#,##0"),
    FORMAT(A, "$#,##0")
)
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @NILESHSURASKAR 

You can use external tool :Tabular  Editor to format the number

vxinruzhumsft_1-1692080829859.png

you can refer to the following video to know more about it .

Dynamic NUMBER FORMATTING using CALCULATION GROUPS in Power BI - YouTube

The following link is the website to download the tool.

Tabular Editor 3

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @NILESHSURASKAR 

You can use external tool :Tabular  Editor to format the number

vxinruzhumsft_1-1692080829859.png

you can refer to the following video to know more about it .

Dynamic NUMBER FORMATTING using CALCULATION GROUPS in Power BI - YouTube

The following link is the website to download the tool.

Tabular Editor 3

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello Team,
Thanks for providing the informatiion.

eliasayyy
Memorable Member
Memorable Member

hello @NILESHSURASKAR  it looks like its becasuse you are using the format and strings so in the bar chartsand otehr charts they will be read as text instaed of a number , however you can use this measure in custom data labels

Hello  Team,
what are the different way of writing the above dax that will be used in charts  and will show the output also 
how to use this measure in custom data labels

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.