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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Measure to show both values £ AND Percentage %

Hi Experts

 

Can i change the following measure to show a Value and Percentage i.e 257 (3%)

Profitability_Summary_Channel =
VAR Mth1 =
SELECTEDVALUE ( SelMth[Month] )
VAR yr =
SELECTEDVALUE ( Year_Grp[Year] )
VAR Fcst1 =
SELECTEDVALUE ( SelMth4[Actual] )
VAR Acct =
SELECTEDVALUE ( Grp_Sumry_Rep[AccountGroup] )


VAR MthVal =

CALCULATE (
SUM ( Profitability_Consolidation[Profit]),
Profitability_Consolidation[Period] = Fcst1,Profitability_Consolidation[Year] = yr, Profitability_Consolidation[AccountGroup] = Acct,  Profitability_Consolidation[Product] = "Total"
)
RETURN
MthVal
1 ACCEPTED SOLUTION
V-pazhen-msft
Community Support
Community Support

@Anonymous 
For example, if you have measure = 1, you can create following dax to get currency and percent.

Measure 2 = CONCATENATE(FORMAT([Measure],"Currency"),CONCATENATE(" / ",FORMAT([Measure],"Percent")))
 
V-pazhen-msft_0-1607654866460.png

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
V-pazhen-msft
Community Support
Community Support

@Anonymous 
For example, if you have measure = 1, you can create following dax to get currency and percent.

Measure 2 = CONCATENATE(FORMAT([Measure],"Currency"),CONCATENATE(" / ",FORMAT([Measure],"Percent")))
 
V-pazhen-msft_0-1607654866460.png

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

PhilipTreacy
Super User
Super User

Hi @Anonymous 

Alternatively, create your measure and then create another measure equal to it i.e.

 

Measure 2 = Measure 1

 

You can then set the formats of each measure independently in the Data tab -> Measure Tools and retain the data type rather than converting to string with FORMAT.

Regards

Phil


If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Johanno
Continued Contributor
Continued Contributor

You can use the FORMAT function to define format within a measure, e.g. RETURN Value1 & " " & FORMAT(Value2, "Percent")

https://dax.guide/format/

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors
Top Kudoed Authors