Forum Discussion
andybamber
Helper III
5 years agoDax Measure - Lastdate
Hello All! I have a file of weekly data snapshots. The file has a snapshot date stamp I have a measure: headcount_Max_Wk = CALCULATE(DISTINCTCOUNT(SNAP_DWH_RES_RESOURCE[resource_key]),LASTDATE(...
Anonymous
5 years agoNot applicable
andybamber Hi , You can use this formula . I took employee Column to get distinct count by month .
headcount_Max_Wk = CALCULATE(DISTINCTCOUNT(Sheet1[Employee]),LASTDATE(Sheet1[SnapShot Date Stamp]))
- andybamber5 years ago
Helper III
Anonymous thanks for your reply... Apart from using Employee field in stead of resource Key (which is effectively the unique employee ID) your measure is probably the same as mine... i think maybe you require some additional information... so the Month is being pulled into the visual from the linked Date Dimension table, the join is from snapshot date stamp to the data.. does that help?
Cheers
Andy
- Anonymous5 years agoNot applicable
andybamber : It Will Work for that as well . you have to define BI Directional Relationship in between datetable and your master table then it will work fine for you .
- andybamber5 years ago
Helper III
Anonymous its currently set as both....