Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello,
Ive been using dax, i would like to filter the newest date for Request Release Date Column on CA Omega Table. Do i need to add a new column to get my data or just a new measure? Plus why i cant put my column name after EARLIEST(). Advance thank you to your inputs!
Solved! Go to Solution.
Hi @xRTP ,
You can create a measure as below, please find the details in the attachment.
OMNew Volume =
VAR _recentdate =
CALCULATE (
MAX ( 'CA Omega'[Request Release Date] ),
ALLSELECTED ( 'CA Omega' )
)
RETURN
CALCULATE (
DISTINCTCOUNT ( 'CA Omega'[Request ID] ),
FILTER (
ALLSELECTED ( 'CA Omega' ),
'CA Omega'[Request Release Date] = _recentdate
)
)
Best Regards
Hi @xRTP ,
You can create a measure as below, please find the details in the attachment.
OMNew Volume =
VAR _recentdate =
CALCULATE (
MAX ( 'CA Omega'[Request Release Date] ),
ALLSELECTED ( 'CA Omega' )
)
RETURN
CALCULATE (
DISTINCTCOUNT ( 'CA Omega'[Request ID] ),
FILTER (
ALLSELECTED ( 'CA Omega' ),
'CA Omega'[Request Release Date] = _recentdate
)
)
Best Regards
Hi @xRTP
please try
OMNew Volume =
VAR FirstDateEver =
CALCULATE ( MIN ( 'CA Omega'[Request Release Date] ), REMOVEFILTERS () )
RETURN
CALCULATE (
COUNT ( 'CA Omega'[Request ID] ),
'CA Omega'[Request Release Date] = FirstDateEver
)
Hello,
This works! thanks. But is it possible to count rows all entrys with the most recent date? It only return 1 transaction
Hello,
Here it counts how many recent so it returns 1 value. The thing is I want to count rows of request ID that has the most recent date, It should return 10 value since there are 10 RequestID that was dated on June 2 (which is recent ATM) so i tried using this code but in visualizer it says it coudnt load the data for this visual
Yah already did but it still count 1 value
@xRTP
Maybe you have a blank date somewhere, Please try
OMNew Volume =
VAR FirstDateEver =
CALCULATE (
MIN ( 'CA Omega'[Request Release Date] ),
REMOVEFILTERS (),
'CA Omega'[Request Release Date] <> BLANK ()
)
RETURN
CALCULATE (
DISTINCTCOUNT ( 'CA Omega'[Request ID] ),
'CA Omega'[Request Release Date] = FirstDateEver,
REMOVEFILTERS ()
)
@xRTP
Please try
OMNew Volume =
VAR FirstDateEver =
CALCULATE ( MIN ( 'CA Omega'[Request Release Date] ), REMOVEFILTERS () )
RETURN
CALCULATE (
DISTINCTCOUNT ( 'CA Omega'[Request ID] ),
'CA Omega'[Request Release Date] = FirstDateEver,
REMOVEFILTERS ()
)
Hello, It still returns 1 value 😞
User | Count |
---|---|
106 | |
89 | |
81 | |
76 | |
73 |
User | Count |
---|---|
112 | |
104 | |
96 | |
74 | |
66 |