Forum Discussion
Multi Date column based calculate count with two filter in DAX
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.
are you able to share your file? i think the issue here is you have 2 dates, i am assuming one has a primary (active) relationship to the date table and the other has a secondary relationship which is inactive (dotted line)? can you share how you share a screenshot of your model and how this is linked up.
maybe this video can help? https://www.youtube.com/watch?v=zZLH8Y1tO1g
in using 2 dates in you will need to activate your secondary relationship by using the userelationship function.
1 Reply
- vanessafvg
Community Champion
are you able to share your file? i think the issue here is you have 2 dates, i am assuming one has a primary (active) relationship to the date table and the other has a secondary relationship which is inactive (dotted line)? can you share how you share a screenshot of your model and how this is linked up.
maybe this video can help? https://www.youtube.com/watch?v=zZLH8Y1tO1g
in using 2 dates in you will need to activate your secondary relationship by using the userelationship function.