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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.