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
sundayDriver
Employee
Employee

Measure not respecting a filter

Hello,

I have a date field in the same table as this measure:

EAScal = if(isblank(Divide(Divide(CALCULATE(COUNTA(vwFeedbackData[WouldIsAdminTrueFileTicket]),vwFeedbackData[WouldIsAdminTrueFileTicket] IN {"yes"}),CALCULATE(counta(vwFeedbackData[HelpfulRating]),vwFeedbackData[HelpfulRating] IN {3,2}))*CALCULATE(count(vwFeedbackData[HelpfulRating]),vwFeedbackData[HelpfulRating] IN {1}),CALCULATE(count(vwFeedbackData[HelpfulRating]),vwFeedbackData[HelpfulRating] IN {1,2,3}))),0,Divide((Divide(CALCULATE(COUNTA(vwFeedbackData[WouldIsAdminTrueFileTicket]),vwFeedbackData[WouldAdminFileTicket] IN {"yes"},vwFeedbackData[HelpfulRating] IN {3,2},vwFeedbackData[isadmin]="true"),CALCULATE(COUNT(vwFeedbackData[HelpfulRating]),vwFeedbackData[HelpfulRating] IN {3,2},vwFeedbackData[isadmin]="true"))*CALCULATE(count(vwFeedbackData[HelpfulRating]),vwFeedbackData[HelpfulRating] IN {1},vwFeedbackData[isadmin]="true")),CALCULATE(COUNt(vwFeedbackData[HelpfulRating]),vwFeedbackData[HelpfulRating] IN {1,2,3},vwFeedbackData[IsAdmin]="true")))

Filtering the date doesn't seem to change the measure. Could you help?

 
1 ACCEPTED SOLUTION

Hi @sundayDriver 

You are creating a column, please select Modeling->New Measure,

enter the following code

WouldIsAdminTrueFileTicket =
IF (
vwFeedbackData[IsAdmin] = "true",
IF (
vwFeedbackData[WouldAdminFileTicket] = "notset",
"Data not found",
vwFeedbackData[WouldAdminFileTicket]
),
"N/A"
)

 

Best Regards
Maggie

 

Community Support Team _ Maggie Li
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

3 REPLIES 3
vmakhija
Post Prodigy
Post Prodigy

@sundayDriver 

Could you share some of the your sample data?

 

Regards

Sure @vmakhija . Here is a screenshot of some of the data. Here is also the code for the one calculated field used:

WouldIsAdminTrueFileTicket = if(vwFeedbackData[IsAdmin]="true",if(vwFeedbackData[WouldAdminFileTicket]="notset","Data not found",vwFeedbackData[WouldAdminFileTicket]),"N/A")

image.png

Hi @sundayDriver 

You are creating a column, please select Modeling->New Measure,

enter the following code

WouldIsAdminTrueFileTicket =
IF (
vwFeedbackData[IsAdmin] = "true",
IF (
vwFeedbackData[WouldAdminFileTicket] = "notset",
"Data not found",
vwFeedbackData[WouldAdminFileTicket]
),
"N/A"
)

 

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.