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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
po
Post Prodigy
Post Prodigy

calculate the count and measure as filter

Hi,

 

Have a table with following columns

 

Yrwk Region Shop Day Supplied Credited

 

We then have a measure whereby we calculate % sold and have a flag to indicate if missed target (i.e. % sold less than target)

 

iF ('%sold < MIN(target),1,0)
 
Wish now to count the number of shops in a region in a week where have failed but if try and craete maesure as
sum(iF ('%sold < MIN(target),1,0)) doesn't allow this.
 
What is the best way to achieve a count of number of rows within a region which have % sold below target in the example above?
 
Thanks

 

 

 

1 ACCEPTED SOLUTION
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @po ,

 

I have a little confused about your requirement.

 

Do you want to count the the rows and the measure as a filter condition?

 

If it is, you could refer to my test.Capture.PNG

 

If that is not your case, please share your data sample and your desired output so that we could help further on it.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
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

2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @po ,

 

I have a little confused about your requirement.

 

Do you want to count the the rows and the measure as a filter condition?

 

If it is, you could refer to my test.Capture.PNG

 

If that is not your case, please share your data sample and your desired output so that we could help further on it.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thansk for update

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.