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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

DAX Error

Hi all,

Im getting error "The True/False expression does not specify a column. Each True/False expressions used as a table filter expression must refer to exactly one column."

 

I have tried Home---> Enter Data create a new table then Im using Calculated Column  

Column = SWITCH(FIRSTNONBLANK('Table'[Service Level Agreement],'Table'[Service Level Agreement]),
"Maintain Tax Certificates",CALCULATE([Within-SLA] / [ticketclosed month basis],FILTER('Finallist-left','Finallist-left'[RequestType]=="Account analysis" && "Marine Enquiery"),0),
"Incorrect Invoice tax",CALCULATE([Within-SLA] / [ticketclosed month basis],FILTER('Finallist-left','Finallist-left'[RequestType]=="Incorrect Invoice"),0))
 
error.JPG
can any one please help me?   how can i solve this   otherswise how to add static text?   thanks in advance
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hello @parry2k I used Get data then I have entered 2 faithful these are static columns, then I tried Caluclate

Column: CALCULATE([Inside-SLA]/[ticket closed month base]), I need a result like this

result.JPG

View solution in original post

5 REPLIES 5
harshnathani
Community Champion
Community Champion

HI @Anonymous ,

 

 

Try something like this

 

Column =
SWITCH (
    FIRSTNONBLANK (
        'Table'[Service Level Agreement],
        'Table'[Service Level Agreement]
    ),
    "Maintain Tax Certificates", CALCULATE (
        [Within-SLA] / [ticketclosed month basis],
        FILTER (
            'Finallist-left',
            'Finallist-left'[RequestType] = "Account analysis"
                && 'Finallist-left'[RequestType] = "Marine Enquiery"
        )
    ),
    "Incorrect Invoice tax", CALCULATE (
        [Within-SLA] / [ticketclosed month basis],
        FILTER (
            'Finallist-left',
            'Finallist-left'[RequestType] = "Incorrect Invoice"
        )
    )
)

 

 

Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

Anonymous
Not applicable

Hi @harshnathani    it's working fine ,  i need current Month,  Last Month  data based on that measure  could you please help me, thansk in Advance

 

 

Regards,

Rajesh

fhill
Resident Rockstar
Resident Rockstar

 

Thinking along the same lines as @parry2k 

 

I don't have your full table structure, but I hope this simplier example helps:

 

fhill_0-1597683239369.png

 




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




parry2k
Super User
Super User

@Anonymous not sure what you are trying to achieve but this code ,0 , not sure why it is there.

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Hello @parry2k I used Get data then I have entered 2 faithful these are static columns, then I tried Caluclate

Column: CALCULATE([Inside-SLA]/[ticket closed month base]), I need a result like this

result.JPG

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors