cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Filter Blank values

Hello everyone,

 

 

I have the following measures on my model:

 

 

QA Score :=
VAR QA_ActualScore =
    SUM ( [Actual Score] )
VAR QA_TotalAudits =
    DISTINCTCOUNT ( Behaviors_Details[ID1] )
RETURN
    DIVIDE ( QA_ActualScore, QA_TotalAudits )
Goal:=SWITCH(
 	TRUE(), 
	[QA Score]<0.9, "Not on Goal", "On Goal")

 

 

I have the following example:

 

Chris has 4 audits with their own scores,
Annotation 2019-12-18 191812.png

 

What i need to know is if the score matches the requirements of completion, in this case if its less than 90% is not on goal, i need a measure that shows something like this

 

Annotation 2019-12-18 1918121.png

 

Using my measures  shows me all the audits even though they are not related with Chris

Annotation 2019-12-18 191812.png

 

The thing is i dont know why is taking into consideration for the visual the audits that are not related with the person in this case, so I need to know how I could filter those to optimize the report.

 

I'm sharing the data model.

 

https://1drv.ms/x/s!Ag7DnkvMsR95rDDNd496pLEZU8PL?e=CQrHcu

 

 

Thanks for the help!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Filter Blank values

Hi @Chris1L ,

Here’s my data model:
a10.png


First, I created a column in “Behaviors_details” table: 

 

Agent = 
LOOKUPVALUE(
    Summary[Agent],
    Summary[ID], RELATED(QA_Audits[ID])
)

 

Second, I created two measures which are like you created: QA Score & Goal

At last, I got the result:

b1.png

 

Best regards,
Lionel Chen

 

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

1 REPLY 1
Highlighted
Community Support
Community Support

Re: Filter Blank values

Hi @Chris1L ,

Here’s my data model:
a10.png


First, I created a column in “Behaviors_details” table: 

 

Agent = 
LOOKUPVALUE(
    Summary[Agent],
    Summary[ID], RELATED(QA_Audits[ID])
)

 

Second, I created two measures which are like you created: QA Score & Goal

At last, I got the result:

b1.png

 

Best regards,
Lionel Chen

 

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

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors