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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
ArchStanton
Power Participant
Power Participant

Error Message

Hi,

I keep getting thrown everytime I see this type of error message - can someone help me re-write this please?
I will then create another 3 duplicates as I have 4 different Case Complexity category values (1-4) to apply.



ArchStanton_0-1719394810567.png

 

Case Complexity 1 = CALCULATE(
    TOTALYTD(COUNT('Cases'[Case Number]),'Cases'[Resolution Date],"31/03"),
    'Cases'[statecode] = "Resolved",
    'OS Case Complexity'[Value] = 1)

 

Thanks,

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ArchStanton ,

 

Thanks for the reply from @rajendraongole1 , please allow me to provide another insight: 

 

Make sure that the filter expression involves only columns from a single table.
You can try the following expression.

 

CaseComplexity1 =
CALCULATE(
    TOTALYTD(
        COUNT('Cases'[Case Number]),
        'Cases'[Resolution Date],
        DATE(2024, 3, 31)
    ),
    FILTER(
        ALL('Cases'),
        'Cases'[statecode] = "Resolved"
    ),
    FILTER(
        ALL('OS Case Complexity'),
        'OS Case Complexity'[Value] = 1
    )
)

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

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

4 REPLIES 4
Anonymous
Not applicable

Hi @ArchStanton ,

 

Thanks for the reply from @rajendraongole1 , please allow me to provide another insight: 

 

Make sure that the filter expression involves only columns from a single table.
You can try the following expression.

 

CaseComplexity1 =
CALCULATE(
    TOTALYTD(
        COUNT('Cases'[Case Number]),
        'Cases'[Resolution Date],
        DATE(2024, 3, 31)
    ),
    FILTER(
        ALL('Cases'),
        'Cases'[statecode] = "Resolved"
    ),
    FILTER(
        ALL('OS Case Complexity'),
        'OS Case Complexity'[Value] = 1
    )
)

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

ArchStanton
Power Participant
Power Participant

ArchStanton_1-1719396373431.png

 

rajendraongole1
Super User
Super User

Hi @ArchStanton - I have adjusted measure by adding Date(2024,3,31) in below mesure, can you try and check

 

CaseComplexity1 =
CALCULATE(
TOTALYTD(
COUNT('Cases'[Case Number]),
'Cases'[Resolution Date],
DATE(2024, 3, 31) 
),
'Cases'[statecode] = "Resolved" && 'OS Case Complexity'[Value] = 1
)

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





It didn't work, I got this error:

ArchStanton_0-1719396185410.png

 

Helpful resources

Announcements
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

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.

Top Solution Authors