Forum Discussion
Update table and last record by category
- 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
Thanks, how can I actually create a bar chart out of this?
Please try that on your own.
- Mi_803 years ago
Helper I
Sorry my vesrion of power bi is older so it won't let me open your file and I am not allowed to update on my system. If you could send me some snapshots or the measures that would be very helpful...thanks
- Ashish_Mathur3 years ago
Super User
You should still be able to open the file (even if you have an older version). Please try on another machine/installation.