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
ERing
Helper V
Helper V

How can I wrap measures in text?

I have two measures (count, % of total count) and want to be able to display the measures in a single card so that the card displays something like " 5,000 (75%)". 

 

Is this possible?

1 ACCEPTED SOLUTION
v-binbinyu-msft
Community Support
Community Support

Hi @ERing ,

Please try to create a measure with below dax formula:

Combined Measure = FORMAT([Count], "#,0") & " (" & FORMAT([% of Total Count], "0%") & ")"

vbinbinyumsft_0-1706511877076.png

 

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
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

5 REPLIES 5
v-binbinyu-msft
Community Support
Community Support

Hi @ERing ,

Please try to create a measure with below dax formula:

Combined Measure = FORMAT([Count], "#,0") & " (" & FORMAT([% of Total Count], "0%") & ")"

vbinbinyumsft_0-1706511877076.png

 

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Ahmedx
Super User
Super User

pls try this

final = [measure1]&" ("& [measure2]&" )"

 @Ahmedx  This is very close, however my first measure is missing the "," for thousands and the second measure is displaying as a decimal when I would prefer it to display as a %.

Current result  = "5000 (.25000000000000)

Desired result = "5,000 (25%)"

final =
"""&[measure1]&" ("&FORMAT([measure2],"0%;-0%;0%")&" )""

@Ahmedx I'm getting an error with this suggestion, but we are one step closer.

 

This is what I have now.
final = [measure1]& " ("&FORMAT([measure2],"0%;-0%;0%")&")"

This is returning 5000 (25%) . All I need now is to format the first measure with a comma seperator. 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.