Forum Discussion
Mi_80
Helper I
3 years agoUpdate table and last record by category
Hi, I am trying to produce something similar but this is not working for me at all . I am told index is not a function? I have an updates table that update a user status from approved, not appro...
- 3 years ago
Hi Mi_80
Firstly, make sure you have the relationship correctly linked between your Date table and fact table which should be Date[Date] and Table[Created On]. From here, you can try something like the following measure:
Users (Approved) = VAR _category = "approved" Var _1 = CALCULATE ( DISTINCTCOUNT ( Table[User name] ) , FILTER ( ALL ( 'Table' ), Table[Category 1] = _category && Table[Created on] <= MAX ( 'Date'[Date] ) ) ) RETURN _1Make sure to update your Table and Column names. Also, if you want to change the category, just create a new measure and update the _category from "approved" to whatever the other category is you're wanting.
Hope this helps mate.
Theo
Ashish_Mathur
Super User
3 years agoMi_80
Helper I
3 years agoHi, any chance you could put the measure formulas here, unable to download links thanks 🙂
- Ashish_Mathur3 years ago
Super User
The link is working fine. try again later.
- Mi_803 years ago
Helper I
Thanks, how can I actually create a bar chart out of this?
- Ashish_Mathur3 years ago
Super User
Please try that on your own.