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
xiumi_hou
Post Partisan
Post Partisan

Need help for dax function

Dear all:


I have two tables, one is the case table(I use it as a filter to filter case) another one is a call table.
The join is the call id. I want the filter only show which case has a held assessment. So the condition is two. Call status=Held. And the type is assessment.

My case table: Case Table.JPG

My call table: 

 

Call Table.JPG

 

Eg. in this example, the call id a and c is good should So in this filter, the case number 1 and 3 should be present in this filter.

 

Below is the link to the excel file. Thanks.

https://1drv.ms/x/s!ArC4uvMBwvXvf6zIYihe6SfWMss?e=MTtIKh

 

 

2 ACCEPTED SOLUTIONS
v-lili6-msft
Community Support
Community Support

hi, @xiumi_hou 

Just create a measure as below:

Measure = CALCULATE(COUNTA('Case Table'[Case number ]),FILTER('Call Table','Call Table'[call type]="Assessment" &&'Call Table'[call status]="Held"))

Then drag this measure into visual level filter of the slicer and set is not blank

1.JPG

and here is sample pbix file, please try it.

 

Best Regards,

Lin 

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

hi @xiumi_hou 

Just hide it in power bi as below:

3.JPG

 

Regards,

Lin

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

5 REPLIES 5
v-lili6-msft
Community Support
Community Support

hi, @xiumi_hou 

Just create a measure as below:

Measure = CALCULATE(COUNTA('Case Table'[Case number ]),FILTER('Call Table','Call Table'[call type]="Assessment" &&'Call Table'[call status]="Held"))

Then drag this measure into visual level filter of the slicer and set is not blank

1.JPG

and here is sample pbix file, please try it.

 

Best Regards,

Lin 

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

Thank you Thank you! That's really help! @v-lili6-msft 

@v-lili6-msft 

Hi , I have a follow up question, hope you can help me figure it out. For the solution filer we can create, when I publish to power BI server, the users still can change the filter we create, is there a way we can control only developer panel? Thank you so much in advance!

hi @xiumi_hou 

Just hide it in power bi as below:

3.JPG

 

Regards,

Lin

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

UP

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.