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! Learn more

Reply
naoyixue1
Post Patron
Post Patron

Doesn't show value in the subtotal but show in each cell? Would you help to guess why?

Hey there,

 

I'm having a issue that one measure works at cell level, but not subtotal level. Do you know why? I really have no idea where I need to check and fix. Thanks (see below table) But even I put that measure in the table, it still doesn't show anything. Do you know why? really no idea what I should check to fix. Thanks!

 

naoyixue1_0-1649558065734.png

naoyixue1_1-1649558155370.png

 

 

1 ACCEPTED SOLUTION

Hi @naoyixue1 ,

 

You can try the HASONEFILTER function:

Measure = IF(HASONEFILTER(Table[SKU]),
IF(xxxxxxxx>=0,BLANK(),SUMX(VALUES(XXXX),XXX*XXX)),
SUMX(VALUES(XXXX),XXX*XXX)
)

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
naoyixue1
Post Patron
Post Patron

By the way, I add the new measure to catch the unit price, See below. Since right now, one finished goods SKU might have to SKU, one is sub SKU and the other is original SKU. 

 

naoyixue1_5-1649635544022.png

naoyixue1_6-1649635591918.png

Below is the way for me to catch the finished goods SKU level shortage. But it doesn't work in subtotal (missing and incorrect) 

naoyixue1_7-1649635711617.png

 

 

Hi @naoyixue1 ,

 

You can try the HASONEFILTER function:

Measure = IF(HASONEFILTER(Table[SKU]),
IF(xxxxxxxx>=0,BLANK(),SUMX(VALUES(XXXX),XXX*XXX)),
SUMX(VALUES(XXXX),XXX*XXX)
)

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

naoyixue1
Post Patron
Post Patron

@ribisht17 and the others,

 

The purpose here is to show the shortage by production line in $, See below two steps

 

1: Calculate the SKU level difference between forecast and prouction in units

2: Applied the unit price to convert the difference in units to dollars

 

Originally, I was ok.  But we have some subSKUs under the initial SKU list (see below), and related production is only located in those sub SKUs, not the finished SKU. Given that, I just added another column to catch only finished goods, which helps to understand the finished goods SKU level difference between forecast and production.  

 

naoyixue1_1-1649634540183.png

Please see my original measure of Shortage in dollars, it was ok, because I got everything from column SKU

naoyixue1_2-1649634673032.png

Right now, I just changed measure to catch the different under finished goods SKU level, which already removed or converted the subSKU to the finished goods SKU. In the details level, it was ok, but I didn't see the top level subtotal which is missing, and on top of that, the aggregation is not right. (see below) 

Exp 1: I see the detailed level shortage, but the subtotal is missing

naoyixue1_3-1649634874732.png

 

Exp 2  Even the detail level is right, but the subtotal is not right. 

naoyixue1_4-1649635000462.png

I think something might be wrong when I calculate  the shortage $, even the SKU level is correct. Do you have any thoughts? Thanks!

ribisht17
Super User
Super User

Need sample data/pbix

 

Ritesh

Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My You Tube Channel !! Connect on Linkedin

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