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
SO
Helper III
Helper III

Simple Count issue

This seems like a simple issue, but I can't seem to find out how to include a Count within a count

 

Measure = COUNTROWS(Table2)

Var= CALCULATE(COUNTROWS(Table1), Filter(ALLSELECTED(Table1[field], count(Table2[field]) = Measure))) 

 

I can see that max or min works, but the Bold does not.

 

Thoughts?

 

 

3 REPLIES 3
SO
Helper III
Helper III

Thank you for the response.  I might have a solution using RankX, so I'll experiment some more first.  As I can't use some functions e.g., Earlier (Live Data issue), I'm trying to find a work around.   Thanks 

ManguilibeKAO
Resolver I
Resolver I

Hi,

 

Could you give us input data and the output you want to have, and explain the logic that leads you to the output data?

 

Best regards.

v-easonf-msft
Community Support
Community Support

Hi, @SO 

Your code is a bit messy and the basic syntax is inaccurate.Is there a relationship between these two tables?
Please show your dsqmple data and expected results in the table.

This will help us better understand your problem.

 

Best Regards,
Community Support Team _ Eason

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.