The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello,
I am trying to create a custom index that works off the 'Item' and 'Date'. For Example, I want it to reset each time a item has a matching item and the same date. But add 1 for every time a item & date match.
See below example, for coloum 'Test Index' I have used the following formula, how do I get the coloum to look like 'Desried Outcome' column (I typed manually)
Test Index = COUNTX (
FILTER(Purchasing_Transaction,
EARLIER(Purchasing_Transaction[item]) = Purchasing_Transaction[Item] && Purchasing_Transaction[Date: Container Arrived at Warehouse] = Purchasing_Transaction[Date: Container Arrived at Warehouse] && EARLIER(Purchasing_Transaction[Date: Container Arrived at Warehouse]) >= Purchasing_Transaction[Date: Container Arrived at Warehouse]),Purchasing_Transaction[item])
Table: Purchasing_Transaction
@Daniel29195 @amitchandak @Ritaf1983 @Ahmedx
Solved! Go to Solution.
Thankyou, although I cant see the measure?
this code M in power query
read about GroupKind.Local and apply it to the date
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
104 | |
97 | |
80 | |
62 | |
57 |
User | Count |
---|---|
264 | |
120 | |
115 | |
83 | |
70 |