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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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