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

Measure will not filter

Guys, do you know what could be an issue with this measure ? I want to use it in couple of visuals with different date filters and now it will not take those visual level filters. My calendar table is filtering 'Teams statistics' 1 to many.

YES count =
VAR min_level =
MIN ( 'user AD'[User Org Level] )
return
CALCULATE (
DISTINCTCOUNT ( 'Teams statistics'[User Principal Name] ),
'Teams statistics'[Teams Channels] = "Yes",
'user AD', 'user AD'[User Org Level] <> min_level)
4 REPLIES 4
Anonymous
Not applicable

@Anonymous  Hey Mate ,
Can you try this Measure.

 

Yes count=
CALCULATE (
DISTINCTCOUNT ( 'Teams statistics'[User Principal Name] ),
FILTER(Teams statistics'[Teams Channels] = "Yes"
))


amitchandak
Super User
Super User

@Anonymous , Try like

YES count =
VAR min_level = MINX ('user AD', 'user AD'[User Org Level] )
return
CALCULATE (
DISTINCTCOUNT ( 'Teams statistics'[User Principal Name] ),
'Teams statistics'[Teams Channels] = "Yes",
filter('user AD', 'user AD'[User Org Level] <> min_level))

 

Appreciate your Kudos!!

Anonymous
Not applicable

Thanks, @amitchandak , that did not work. I think the issue lies in 'Teams statistics'[Teams Channels]  and it is calculated column for YES count per user:

Teams Channels =
VAR current_user = 'Teams statistics'[User Principal Name]
VAR amount_per_user =
CALCULATE(SUM('Teams statistics'[Team Chat Message Count]), FILTER('Teams statistics','Teams statistics'[User Principal Name]=current_user))
return
IF(amount_per_user>=2, "Yes", "No")

 

 

@Anonymous if calculate column is right in its table, then Measures calculation in visual will not affect the calculated column's result.

better show your sample data and expected result

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.

Top Solution Authors