cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
eliasayy
Impactful Individual
Impactful Individual

Format Number inside measure

hello everyone ,

 i have a measure that says:

Previous Sales = 
VAR TotalSales = CALCULATE(SUM(Revenue[Sales]),PREIOUSMONTH(Date[date]))
RETURN

"PV: " & TotalSales 

 

The result i got is for example :

PV: 109765.67

my desired result is PV: $109,765.67

How can i add this to the measure please to get the result

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

You can use the FORMAT function, e.g.

Previous Sales = 
VAR TotalSales = CALCULATE(SUM(Revenue[Sales]),PREIOUSMONTH(Date[date]))
RETURN

"PV: " & FORMAT(TotalSales, "Currency")

View solution in original post

2 REPLIES 2
johnt75
Super User
Super User

You can use the FORMAT function, e.g.

Previous Sales = 
VAR TotalSales = CALCULATE(SUM(Revenue[Sales]),PREIOUSMONTH(Date[date]))
RETURN

"PV: " & FORMAT(TotalSales, "Currency")
eliasayy
Impactful Individual
Impactful Individual

thank you very much

 

Helpful resources

Announcements
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!