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
Gokul_G16
Resolver I
Resolver I

From & To Date columns based filter the count

Hello Team.,

 

If u don't mind can u please look here. only Power BI Dax

 

Column 1- date values

 

Also column 2- date values only

 

Note: coulmn 1 & coulmn 2 date are different date

 

Column 3- 'open' and 'close' text. Ok

 

Let we want to filter two conditions based ...

 

M1=calculate( count( 

column 1) ,Filter column 3 ="close"))

 

M2=calculate( count( 

column 2) , Filter column 3 ="open")))

 

Percentage.

 

M3=M1/(M1+M2)

 

So For here.

I want find percentage me based above dax format.

 

Major issues is those date columns are different.

 

I can't make any user relationship here.

Also 

I have a date calendar table,here the thing is when I click date in slicer based my date selection percentage need to change by which is here apply dax condition..

I was tried that thing it was reflecting wrong value!!!

 

So guy's can please help expedite support here..

 

Thanks

Gokul

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Gokul_G16 , refer if approch of this blog , common date table, userelationship can help

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

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

View solution in original post

@amitchandak ,

Thank you very much your support.

That has been working fine...

 

 

Thanks

 

Gokul

 

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Gokul_G16 , refer if approch of this blog , common date table, userelationship can help

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

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

@amitchandak ,

Thank you very much your support.

That has been working fine...

 

 

Thanks

 

Gokul

 

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.