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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Problem with graph

Hello

 

I cannot create a bar graph using the following table:

 

K1, 12

K1, (blank)

K1, 23

L1, 24

M1, (blank)

....

 

The 12, 23, (blank), etc values are calculations of a MEASURE.

 

I drop the K1, etc column into the horizontal axis so that it should display K1, L1, M1 and the MEASURE column into the vertical axis so that it should display the SUM of the MEASURE values for K1, etc but nothing happens.

 

Can you advise please how to fix that?

Is it because the K1 etc column contains duplicates?

Is it because the 12, etc column is a MEASURE?

Is it because the 12, etc column contains blanks?

 

Thanks!

7 REPLIES 7
jdbuchanan71
Super User
Super User

@Anonymous 

If the result of the measure is a string rather than a number because you used FORMAT in the measure then it won't show in a graph.  Can you share the measure formula?

Anonymous
Not applicable

Thanks, here is the formula that I use:

 

MEASURE1 = IF(SELECTEDVALUE(Table1[ID])="SOME1",CALCULATE(COUNTROWS(Table2),FILTER(Table2,Table2[source]=SELECTEDVALUE(Table1[System])),Table2[name]<>"",Table2[Exclusion]<>"Y"),
BLANK())

 

It is also formatted as WHOLE NUMBER in the table that I display this MEASURE. 

If you put the category and the measure in a table visual does the measure show data?

Anonymous
Not applicable

@jdbuchanan71 

 

Unfortunately it does not show any data.

 

When I create a table visual and I drag the Category column, it displays all the unique Categories but when I add the MEASURE, the table becomes empty.

 

What can fix that?

 

Thanks!

This part of your measure is evaluating as false all the time so all you are getting the BLANK() is my guess.

IF(SELECTEDVALUE(Table1[ID])="SOME1"

If you add Table1[ID] to a slicer and select "SOME1" do the values appear in the table? 

Anonymous
Not applicable

Yes, I get all the unique values of ID in the slicer.

 

I think the problem is it cannot aggregate results from MEASURES. I may be able to aggregate other numbers but not MEASURES.

 

Is there any workaround?

In the slicer pick 

"SOME1"

That is the value your measure is looking for.

All measures do is aggregate date so that is not your problem. 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors