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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Anonymous
Not applicable

Need count based on measure value

HI,

 

i need count of value per date but the value is coming from a measure.

as you can see below we have diff dates and value for each day.

value is coming from a different dax measure.

so i want another measure where count of value >45

so finally i want to seee out put as we have 4 days where value is >45.

 

how to acheive this?

@amitchandak @Pragati11 @denxx34 @duncanmi @RobHofker @visheshjain 

datevalue
01-02-202259
02-02-202260
03-02-202245
04-02-202240
05-02-202235
06-02-202278
07-02-202290
1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Anonymous 
Please try

Count =
SUMX ( VALUES ( 'Table'[Date] ), IF ( [Value] > 45, 1 ) )

View solution in original post

4 REPLIES 4
tamerj1
Super User
Super User

Hi @Anonymous 
Please try

Count =
SUMX ( VALUES ( 'Table'[Date] ), IF ( [Value] > 45, 1 ) )
Anonymous
Not applicable

@tamerj1 thanks for your time, this solution is working for me.

visheshjain
Solution Supplier
Solution Supplier

Hi @Anonymous,

 

Try the following method,

 

CALUALTE( COUNTROWS(Date[Date]), FILTER(Date[Date], Measure>45))

 

Hope this works out for you and if it doesn't, please share a PBIX.

 

Thank you,

Vishesh Jain

Did I answer your question?
If yes, then please mark my post as a solution!

Thank you,
Vishesh Jain

Proud to be a Super User!



Anonymous
Not applicable

@visheshjain appriciate your time on this, it is not working as i expected. but thanks for your time.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors