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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
rpinxt
Solution Sage
Solution Sage

Placeholder error

Is there a way to tackle this?

rpinxt_0-1698148535766.png

I want to count the IDs where the closure month is equal to the period.

It will not let me and I am not sure where the problem exactly is....

1 ACCEPTED SOLUTION
Dangar332
Super User
Super User

hi, @rpinxt 

use your filter part of calculate in FILTER function.

try below code 


closed =
calculate(distinctcount('case'[id]),
                 filter('dimdate',dimdate=[closure month])

               )

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. and don't forget to give kudos

View solution in original post

3 REPLIES 3
rpinxt
Solution Sage
Solution Sage

Thanks @Dangar332 that seems to be working.

Well I get amounts, not sure if they are correct but I will have to analyse the data.

At least it gives output, thanks for showing me this way of using filter function inside the filter section of calculate.

Dangar332
Super User
Super User

hi, @rpinxt 

use your filter part of calculate in FILTER function.

try below code 


closed =
calculate(distinctcount('case'[id]),
                 filter('dimdate',dimdate=[closure month])

               )

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. and don't forget to give kudos

rpinxt
Solution Sage
Solution Sage

Maybe I need to elaborate more.

 

I have a table called 'Case' and one field in this table is called [CloseDate].

And I have an autocalendar which gives me period (linked to a date field in the 'Case' table), 'dimDate'[Period].

 

Now I want to count the field 'Case'[Id] where the 'Case'[CloseDate] = 'dimDate'[Period].

 

But I cannot reference the field 'Case'[CloseDate] in my measure without using for example MAX.

However then I get only 1 period and I need it to look in every period and then give me the amount for that month.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.