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
rajend12
Helper III
Helper III

How to filter few of many values in line graph

Hey,

 

I need to filter Blank closed date column and find the average and max of "Case age in days" column:

 

rajend12_0-1600929148284.png

 

Also, I have other values to plot in line graph as below:

rajend12_0-1600929393182.png

 

 

Please suggest some ways to use filter for the bottom two values used.

 

Thanks.

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@rajend12 , you can use a slicer on the bank close date. Or join both open and close date to date table and one active, one inactive relation. And use userelation to choose date.

 

refer:https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

 

or you can use in filter

example

calculate( [measure], filter(Table, Table[Closed Date] <date(2020,02,02)))

View solution in original post

3 REPLIES 3
v-eqin-msft
Community Support
Community Support

Hi @rajend12 ,

 

Sorry to disturb you...

But did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please upload some insensitive data samples and expected output.

 

Best Regards,
Eyelyn Qin

v-eqin-msft
Community Support
Community Support

Hi @rajend12 ,

Here is my pbix file.

 

1.Calculate the average and max when the closed date is blank:

9.25.3.1.png

 

2.Calculate the average and max when the closed date is not blank:

9.25.3.1.gif

Did I answer your question ? Please mark my reply as solution. Thank you very much.

If not, please upload some insensitive data samples and expected output.

 

Best Regards,

Eyelyn Qin

amitchandak
Super User
Super User

@rajend12 , you can use a slicer on the bank close date. Or join both open and close date to date table and one active, one inactive relation. And use userelation to choose date.

 

refer:https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

 

or you can use in filter

example

calculate( [measure], filter(Table, Table[Closed Date] <date(2020,02,02)))

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.