Forum Discussion
Robyrubyjane
3 years agoFrequent Visitor
DAX code to Input data
hi guys I need help, so i have data like this.. and if we filter in one of data in sitename column, it'll be like this as we can see there is 4 sitename that has same name and SiteID bu...
- 3 years ago
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
Tenant rank measure: = IF ( NOT ISBLANK ( MAX ( Data[rental start] ) ) && HASONEVALUE ( Site[siteID] ), RANKX ( FILTER ( ALL ( Data ), Data[siteID] = SELECTEDVALUE ( Data[siteID] ) ), CALCULATE ( MAX ( Data[rental start] ) ), , ASC ) )
Jihwan_Kim
3 years agoSuper User
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
Tenant rank measure: =
IF (
NOT ISBLANK ( MAX ( Data[rental start] ) ) && HASONEVALUE ( Site[siteID] ),
RANKX (
FILTER ( ALL ( Data ), Data[siteID] = SELECTEDVALUE ( Data[siteID] ) ),
CALCULATE ( MAX ( Data[rental start] ) ),
,
ASC
)
)