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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ckleppe
Regular Visitor

Measure for counting products with multiple value filters

Hi all,

 

I am working on a report for new product development. 

There are some KPI's (numbers) I want to show.

For example:

Count of products that reach >= 20000kg's or >=7500 margin. 

So 2 filters from different value sources (weight and margin)

The idea is very simple, but I can't figure out a solution to count the products....

 

Thanks in advance

Camiel

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@ckleppe ,

Try like

countx(filter(summarize(Table,Table[product],"_r",sum(Table[reach]),"_m" ,sum(table[margin])),[_r]>=20000 || _m >=7500 ),[product])

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@ckleppe ,

Try like

countx(filter(summarize(Table,Table[product],"_r",sum(Table[reach]),"_m" ,sum(table[margin])),[_r]>=20000 || _m >=7500 ),[product])

@amitchandak It's working, thanks!!

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.