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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Kavya123
Helper III
Helper III

Unable to Visualize Measure

Hi Everyone,

 

I am unable to show measure in bar chart.  I need to use format for my calculation. Please help

 

if(HASONEVALUE(Merge1[ResponseType]),format( divide(CALCULATE(SUM(Merge1[Value]) ,FILTER(Merge1, Merge1[Benchmark (2).iIdConsortium]= 52) ),100),FIRSTNONBLANK(Merge1[ResponseType],1)) , sum(Merge1[Value]))

 

 

 

 

4 REPLIES 4
amitchandak
Super User
Super User

@Kavya123 , is format function is going to convert this into text. because if the data type is text, you might not able to use the same on the bar.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Response type, Value,Year,Name,Output

##0,  44,  2018  , A, 44

###,###,###,##0%,  50.6,  2018,  B,  51%

###,###,###,##0.0,  66.87,   2019, C, 66.9

###,###,###,##0.0%, 10.7, 2020, D, 10.7%

###,###,###,##0.00%, 30.55, 2020, E, 30.55%

Thanks for your response. But, I need to format the data based on the field response type. Please let me know if we have  any other option

@Kavya123 ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.