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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
sajal161292
Helper V
Helper V

undefined

Hi,

 

 I have a visual which is displaying the same value of parts against all the suppliers in a matric visual.

 

Capture3.PNG

Upon selecting a site in another visual it should display the count againse each supplier which should vary accordingly.

Please help me in correcting it.

3 REPLIES 3
jthomson
Solution Sage
Solution Sage

This might be a relationship issue, or it might be an issue with the measure you're using to count the total parts - what does your data model look like and how are you calculating your values?

Hi,

 

The measure is:

 

Total Shortage Count = if(
COUNTROWS(
VALUES(Shortages[name])
) = 1,
[ShortageCount],
SUMX(
VALUES(Shortages[name]),
[ShortageCount]
)
)

 

ShortageCount =
var itemName = FIRSTNONBLANK(Shortages[name],Shortages[name])
RETURN
CALCULATE(
count(Shortages[item_segments]),
filter(Shortages,Shortages[Shortage day] = -1 &&
Shortages[name] = itemName

 

This is my model:


)Capture4.PNG

Hi sajal161292,

 

If my understanding is right, you want to achieve the aggregation value grouped by Supplier, right? You can create your measure in table 'Supplierdata' like pattern below and check if it can meet your requirement.

 

ShortageCount =
VAR itemName =
    FIRSTNONBLANK ( Shortages[name], Shortages[name] )
RETURN
    CALCULATE (
        COUNT ( Shortages[item_segments] ),
        FILTER (
            ALLEXCEPT ( Supplierdata, Supplierdata[SupplierName] ),
            Shortages[Shortage day] = -1
                && Shortages[name] = itemName
        )
    )

Hope it's helpful to you.

 

Jimmy Tao

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.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.