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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Companyuser101
Helper II
Helper II

Measure filter

Companyuser101_2-1661441967963.png

 

Hello, I have the field "Ziel AG (WHS)" which is a Sum. 

Companyuser101_3-1661441996930.png

I now want fo filter it with a measure. You see on the picture above that the Field Ziel AG WHS appears on on every line. I only want it to appear for "Agricultural Tractor". Can I write a measure to filterit? I tried it with the calculate measure, but it did not work. 

 

 

5 REPLIES 5
v-yanjiang-msft
Community Support
Community Support

Hi @Companyuser101 ,

According to your description, you want only the previous level to display values and the next level not. I create a sample.

vkalyjmsft_0-1661934432771.png

And a measure to reproduce your problem.

vkalyjmsft_1-1661934491207.png

Here's my solution, create another measure.

Measure2 =
IF ( ISINSCOPE ( 'Table'[Sub_category] ), BLANK (), [Measure] )

Then get the expected result.

vkalyjmsft_2-1661934623627.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

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

 

Hey, thanks for your help!

 

Sadly it did not work with my data. Our data is a litte more complex. 

I want to provide you with some data, but I can't upload it here. 

 

For explanation we have two data sets. 

1) Products: 

Companyuser101_0-1662097400713.png

This are all our products. We have four categories (hierachy L1) and then different series of this categories and for all series specific models. Its a hierachy. 

 

Then we have our goal data. 

We only make goals for the hierachy L1 level.

I have a relation between those two datas with hierachy L1.

Companyuser101_2-1662098936251.png

We have different dealers, in this example 3. All have goals in Retails and WholeSales for Prod. Hierachy L1. 

I have a relationship between these two data sets on Prod. Hierachy l1. 

 

My table then looks like this: 

Companyuser101_3-1662098997232.png

 

 

I have a second data set. products are the same. 

But I put in the goal data some Prod. Hierachy L3. These are wrong, just manipulated it, because maybe PowerBi needs data there.

 

Goal data now looks like this: 

Companyuser101_4-1662099062131.png

I have now a relationship on prod. hierachy L3

 

Data now looks like this: 

Companyuser101_5-1662099100405.png

Maybe this can help you. Maybe PowerBi need data for hierachy L3 because its the lowest in the hierachy. Just an idea of mine. 

 

Thanks for your help!

 

 

ToddChitt
Super User
Super User

I bet that field is not related to rows you show, because it is showing 13 for each, event he total. Can you share your data tables and relationships?




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





Hi, yes there is no relationship. In the "Ziel" data we dont have columns that could relate to the "model" date which ist agricultural date, compact tractors, and so on. 

Companyuser101_1-1661491227110.png

 

Hello again, 

I changed the data a little bit: 

Now I have a relationship: 

Companyuser101_0-1661509546775.png

My table now looks like this: 

Companyuser101_1-1661509589422.png

The WHS Plan now is correct for the different models (Agricultural Tractor, Compact Tractos, ...).

But I'm not able to make a relationship with the second dimension 

Companyuser101_2-1661509663248.png

So here are still always the same numbers. 

Can I filter the numbers from WHS Plan so they only appear on the first dimension and not on the following ones?

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors