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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.