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

Create measure to filter the results

Dear All

 

I want to create a measure to show all transactions expect Indicator C & H that have Submit To (1).

 

So, basically, I want to remove Indicator C & H that is SubmitTo (1) from the result. Can you please help!

 

Thanks

Gaurav

 

Submit ToNumberInvoiceDetailIDInvoiceIDAmountIndicator
0792182572309645867026500A
07921827923096468670281250A
07921827923096478670282000A
17921827923096488670282750C
17921829923096498670293500C
17921829923096508670294250C
17921829923096518670295000A
17921831323096528670305750A
17921831623096538670306500F
17921831823096548670307250F
17921833023096558670318000F
17921833523096568670318750F
17921834523096578670319500F
279218351230965886703110250H
279218355230965986703111000H
279218357230966086703111750H
279218371230966486705012500H
279218374230966786705213250H
179218351230965886703110250H
179218355230965986703111000H
179218357230966086703111750H
179218371230966486705012500H
179218374230966786705213250H
27921827923096488670282750C
27921829923096498670293500C
2

79218299

23096508670294250C

 

Result

 

SubmitToNumberInvoiceDetailIDInvoiceIDAmountIndicator
0792182572309645867026500A
07921827923096468670281250A
07921827923096478670282000A
17921829923096518670295000A
17921831323096528670305750A
17921831623096538670306500F
17921831823096548670307250F
17921833023096558670318000F
17921833523096568670318750F
17921834523096578670319500F
279218351230965886703110250H
279218355230965986703111000H
279218357230966086703111750H
279218371230966486705012500H
279218374230966786705213250H
27921827923096488670282750C
27921829923096498670293500C
27921829923096508670294250C
2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@gaurav-narchal , Add this measure to visual.

if(max([Submit To]) =1, if(max(Indicator) in {"H", "C"} , blank(), countrows(Table)),countrows(Table))

 

All the measure in visual should follow this logic

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

speedramps
Super User
Super User

Please consider this solution and leave kudos

 

IsnotCH1 =
VAR notCH1 =
FILTER('MyTable',
NOT 'MyTable'[Indicator] IN {"C", "H"} ||
'MyTable'[Submit To] <> 1
)
RETURN
COUNTROWS(notCH1)
 

View solution in original post

2 REPLIES 2
speedramps
Super User
Super User

Please consider this solution and leave kudos

 

IsnotCH1 =
VAR notCH1 =
FILTER('MyTable',
NOT 'MyTable'[Indicator] IN {"C", "H"} ||
'MyTable'[Submit To] <> 1
)
RETURN
COUNTROWS(notCH1)
 
amitchandak
Super User
Super User

@gaurav-narchal , Add this measure to visual.

if(max([Submit To]) =1, if(max(Indicator) in {"H", "C"} , blank(), countrows(Table)),countrows(Table))

 

All the measure in visual should follow this logic

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.