Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello community,
I am new to PowerBI and still struggling to understand what would be the best solution for my problem.
I have a table that holds a report type which is text value ('P&L', 'CAPEX', 'ASSET') and a budget column that holds numerical values.
We used for now data for the first two report types until now and the budget was just a measure that divided by 1000 to keep the numbers low and more easily readable.
Solved! Go to Solution.
You can use the new preview feature for 'Dynamic format string for measures' to accomplish what you are looking for.
Go to File > Options and settings > Options and enable the feature:
There is more information about the feature here: https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-dynamic-format-strings
Then you have a measure that sums up your budget amount and also has the dynamic formatting code.
Measure:
Budget Amount = SUM ( FinMgmt_FY23[Budget] )
Format:
SWITCH (
SELECTEDVALUE ( FinMgmt_FY23[Report Type] ),
"ASSET", "#,0",
"#,0,. K"
)
Here is what the formatted measure looks like vs the raw data:
I have attached my sample file for you to look at.
Finally, a shout out to @parry2k for his excellent video on number formatting using the new feature. https://www.youtube.com/watch?v=tTNkPesnx5M
Oh had no idea about this. Thank you for the help - now i gotta go play with formatting 🙂
Thanks for the shout out @jdbuchanan71!
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
You can use the new preview feature for 'Dynamic format string for measures' to accomplish what you are looking for.
Go to File > Options and settings > Options and enable the feature:
There is more information about the feature here: https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-dynamic-format-strings
Then you have a measure that sums up your budget amount and also has the dynamic formatting code.
Measure:
Budget Amount = SUM ( FinMgmt_FY23[Budget] )
Format:
SWITCH (
SELECTEDVALUE ( FinMgmt_FY23[Report Type] ),
"ASSET", "#,0",
"#,0,. K"
)
Here is what the formatted measure looks like vs the raw data:
I have attached my sample file for you to look at.
Finally, a shout out to @parry2k for his excellent video on number formatting using the new feature. https://www.youtube.com/watch?v=tTNkPesnx5M