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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
neodghale205889
Frequent Visitor

Power Bi Visual Question

HI! I am having an issue with my visual populating incorrect values. Any help is appreciated!

 

So I have two measures that are basically identical, Grade 1 and Grade 2, just populate different results:

 
VAR FilteredRows =
FILTER(
    'PRODUCTION- Results',
    CONTAINSSTRING(
        'PRODUCTION- Results'[Grade],
        "1"
    )
)

VAR Sumof1 =
SUMX(
FilteredRows,
'PRODUCTION- Results'[Total Weight]
)

VAR TotalLbs=
CALCULATE(
    SUM('PRODUCTION- Results'[Total Weight]),
    ALL('PRODUCTION- Results'[Grade])
)
RETURN
CALCULATE(
DIVIDE(
Sumof1,
TotalLbs
)
)
 
I then created a measure Grade1andGrade2 that added these results together:
 [%ofGrade1]+[%ofGrade2]
 
The whole point of this is so that in my visual, I can easily filter out any items that are below 50%. So the idea is that if I create the measure Grade1andGrade2 and filter it to less than .50, it will only show my items where the combined Grade 1 and 2 are less than 50%.
 
However when I actually try to use this measure on the visual, it is still pulling the grades individually. So instead of looking at the combined grade 1 and 2 and filtering accordingly. It is looking at grade 1 and then grade 2, so the filter is incorrect.
 
1 REPLY 1
MFelix
Super User
Super User

Hi @neodghale205889 ,

 

This depends on the columns you are using on your visual.

 

Can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.

If the information is sensitive please share it trough private message.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.