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
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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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