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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
thmonte
Helper IV
Helper IV

Custom currency format?

I am build a report for a online gaming community and I was wondering if its possible to make up a custom format for values while still being able to do calculations of it.

 

For example:

 

Lets say I have a number values in a column of 80, 180, and 10,180

 

I want to show them in my reports as 

 

80c

1s 80c

1g 1s 80c

 

I can easily text format htis but then when I put it into tables it doesn't give me sums.  Was wondering if theres a better approach to use?

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

I think they just released something in September for this:

https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-september-2019-feature-summary/#customForm...

 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
AnthonyTilley
Solution Sage
Solution Sage

Use a measure 

in the measure decalre a veriable as a sum of your curancy amount

tehn decalre a second veraible to format this in the required output 

then return the out put

 

in this way it will do all the sums before formating it to text 

 

Measure = 
var amt = sum('Table'[AMT])
var ret = FORMAT(amt, "##0g 00s 00c")
Return ret

Example

cur.png

 

just need to change the text format to your desired output





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Greg_Deckler
Super User
Super User

I think they just released something in September for this:

https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-september-2019-feature-summary/#customForm...

 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

This is great!  Thanks.  If only I could save and apply it to columns in the modeling tab!

@thmonte 

 

To help improve Power BI, you may give feedback at the bottom.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.