Reply
ArchStanton
Impactful Individual
Impactful Individual
Partially syndicated - Outbound

Unable to count values in column

I am tring to count the amount of items that took <15 etc

 

The code I'm using is:

 

 

# Cases <15 days = CALCULATE(
                            COUNT(Deferrals[regardingobjectid]),
                            FILTER(Deferrals,
                            Deferrals[TimeinDeferral] = "<15"))

 

 

I'm getting this error message

ArchStanton_1-1678275874801.png

 

Can anyone offer a suggestion to get around this? 

Is there a way of doing this without using Variables?

 

Thanks

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

Syndicated - Outbound

@ArchStanton , seem like TimeinDeferral in a number datatype field try like

 

# Cases <15 days = CALCULATE(
COUNT(Deferrals[regardingobjectid]),
FILTER(Deferrals,
Deferrals[TimeinDeferral] <= 15))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

Syndicated - Outbound

@ArchStanton , seem like TimeinDeferral in a number datatype field try like

 

# Cases <15 days = CALCULATE(
COUNT(Deferrals[regardingobjectid]),
FILTER(Deferrals,
Deferrals[TimeinDeferral] <= 15))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Syndicated - Outbound

Yes, that worked, many thanks!!😊

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)