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
szmaya
New Member

Power BI measure Total issue

Hi everyone,
I need help creating a measure in power bi for a matrix table that's categorized by brand and store. It has three columns the first one contatins the number of found products in the store, the second one the required number for each brand and the third is the measure i'm trying to create. 

This how my current measure looks like:

Teljesülés = IF([Cikkek száma]<>BLANK(),IF(CALCULATE([Cikkek száma],FILTER('FACT_Jelenlét Márka','FACT_Jelenlét Márka'[Márka]=SELECTEDVALUE('FACT_Elvárt jelenlét'[Márka])))>=CALCULATE([SUM_Elvárt jelenlét],FILTER('FACT_Jelenlét Márka','FACT_Jelenlét Márka'[Márka]=SELECTEDVALUE('FACT_Elvárt jelenlét'[Márka]))),
1,
0
),
BLANK())


For the total row i would want it to sum the 1s from their rows , this way i could easily see how many stores met the required quantities per brand.

 

This is how my table currently looks like and how it should.

image.png

Thanks so much in advance!

1 ACCEPTED SOLUTION
szmaya
New Member

Thank you both!
This was the correct answer at the end:

Teljesülés =
SUMX (
SUMMARIZE('FACT_Jelenlét','DIM_Bolttörzs'[Bolt kód], 'FACT_Jelenlét Márka'[Márka] ),
VAR Found =  [Cikkek száma]
VAR Required = [SUM_Elvárt jelenlét]
RETURN
IF (
NOT ISBLANK ( Found ) && Found >= Required,
1, 0 )
)

View solution in original post

3 REPLIES 3
szmaya
New Member

Thank you both!
This was the correct answer at the end:

Teljesülés =
SUMX (
SUMMARIZE('FACT_Jelenlét','DIM_Bolttörzs'[Bolt kód], 'FACT_Jelenlét Márka'[Márka] ),
VAR Found =  [Cikkek száma]
VAR Required = [SUM_Elvárt jelenlét]
RETURN
IF (
NOT ISBLANK ( Found ) && Found >= Required,
1, 0 )
)
anmolmalviya05
Super User
Super User

Hi @szmaya, Hope you are doing good!

Please try the below measure:

Teljesülés =
SUMX (
VALUES ( 'FACT_Jelenlét Márka'[Store] ),
VAR Found = [Cikkek száma]
VAR Required = [SUM_Elvárt jelenlét]
RETURN
IF ( NOT ISBLANK ( Found ) && Found >= Required, 1, 0 )
)


If this post helps to answer your question, please consider accepting it as a solution so others can find it more quickly when they face a similar challenge.




Proud to be a Microsoft Fabric community super user




Let's Connect on LinkedIn




Subscribe to my YouTube channel for Microsoft Fabric and Power BI updates.

 

Shahid12523
Community Champion
Community Champion

use this

Teljesülés =
SUMX (
VALUES ( 'FACT_Jelenlét Márka'[Bolt kód] ),
VAR Found = CALCULATE ( [Cikkek száma] )
VAR Required = CALCULATE ( [SUM_Elvárt jelenlét] )
RETURN
IF (
NOT ISBLANK ( Found ) && Found >= Required,
1,
0
)
)

Shahed Shaikh

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.