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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
graceste
Frequent Visitor

ignore Category in measure

Hi,

my plan values are divided in Group and Category, my results are divided in Group, Category and Subcategory

is there any way to show only Subcategories with value and plan only for Category and Group?

thanks for any help

 

 

 

                                                                               Value                 Plan                    Diff.

Categ.JPG

3 REPLIES 3
Anonymous
Not applicable

Hi @graceste,

 

Maybe you can try to add condition to check if current value column is not blank, then calculate with plan.

 

Diff =
IF (
    SUM ( Table[Value] ) <> BLANK (),
    SUM ( Table[Value] ) - MAX ( Table[plan] ),
    BLANK ()
)

 


Regards,

Xiaoxin Sheng

Hi  @Anonymous

 

then I will see the rows anyway, and I would like to hide them, expectet result should show Value,Plan and Diff. only for Group and Category,

Subcat. should be shown only if it has a value as info to show what builds the Category result 

 

   

 ValuePlanDiff
Group12.625 €15.000 €2375
Category82 €136 €-54
Subcat.1482 €  

 

all other Subcat. should be hidden, it doesn't work with Value Filter because the same Subcat. are used in other Groups and they have a value there,

is there any way to achieve that?

Anonymous
Not applicable

Hi @graceste,

Can you please provide some sample data or pbix file for test and code formula?

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.