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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Column 'RAW SLA%' in table 'Query1' cannot be found or may not be used in this expression.

hii 

 

i was getting an error i am trying to count the sla% the same formula i used for call closed it is working perfectly but my sla % is not

 

Count of Call Closed 1 =
CALCULATE (
COUNT(Query1[Call Closed]),
FILTER (
Query1,
Query1[Call Closed].[MonthNo] <= [Selected Slicer]
&& Query1[Call Closed].[MonthNo] >= [Selected Slicer] - 2
&& Query1[Call Closed].[Year] = YEAR ( TODAY () )
)
)

image.png

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@greeshma

I'm not sure what the RAW SLA% measure returns, to the next measure if you need to count the rows.

ROW SLA% 1 =
CALCULATE(
COUNTROWS( Query1 ),
    FILTER (
        Query1,
        Query1[Call Closed]. [MonthNo] <= [Selected Slicer]
        && Query1[Call Closed]. [MonthNo] >= [Selected Slicer] - 2
        && Query1[Call Closed]. [Year] = YEAR ( TODAY () )
    )
)


You may need to average % of results

ROW SLA% 1 =

AVERAGEX(
    FILTER (
        Query1,
        Query1[Call Closed]. [MonthNo] <= [Selected Slicer]
        && Query1[Call Closed]. [MonthNo] >= [Selected Slicer] - 2
        && Query1[Call Closed]. [Year] = YEAR ( TODAY () )
    ),
    [RAW SLA%]
)



________________________

If my answer was helpful, consider Accepting it as the solution to help other members find it

Click the Thumbs-Up icon if you like this answer 🙂

Youtube Linkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

3 REPLIES 3
Fowmy
Super User
Super User

@greeshma

I'm not sure what the RAW SLA% measure returns, to the next measure if you need to count the rows.

ROW SLA% 1 =
CALCULATE(
COUNTROWS( Query1 ),
    FILTER (
        Query1,
        Query1[Call Closed]. [MonthNo] <= [Selected Slicer]
        && Query1[Call Closed]. [MonthNo] >= [Selected Slicer] - 2
        && Query1[Call Closed]. [Year] = YEAR ( TODAY () )
    )
)


You may need to average % of results

ROW SLA% 1 =

AVERAGEX(
    FILTER (
        Query1,
        Query1[Call Closed]. [MonthNo] <= [Selected Slicer]
        && Query1[Call Closed]. [MonthNo] >= [Selected Slicer] - 2
        && Query1[Call Closed]. [Year] = YEAR ( TODAY () )
    ),
    [RAW SLA%]
)



________________________

If my answer was helpful, consider Accepting it as the solution to help other members find it

Click the Thumbs-Up icon if you like this answer 🙂

Youtube Linkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

amitchandak
Super User
Super User

@Anonymous , is [RAW SLA%] a measure if so, use it without count

 

or use countx(Query1,[RAW SLA%]) .

 

If it is column, try to get exact name in the formula

Anonymous
Not applicable

hiii amit 

i tried with countx it is still showing an error

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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