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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak ,

Thank you very much your support.

That has been working fine...

 

 

Thanks

 

Gokul

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.