Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello All!
Im trying to look up closed transactions, the only thing is when they are closed they are no longer existent, so Im trying to figure out a way to look up past records and compare them to latest update of data and see which were closed.
thanks!!
Solved! Go to Solution.
@Joorge_C Please try this as a New Column
MissingFlag = VAR _LatestDate = MAX(Test221PrevTransMissingCount[LoadDate]) VAR _Check = LOOKUPVALUE(Test221PrevTransMissingCount[Transaction],Test221PrevTransMissingCount[Transaction],Test221PrevTransMissingCount[Transaction],Test221PrevTransMissingCount[LoadDate],_LatestDate) RETURN IF(ISBLANK(_Check) && Test221PrevTransMissingCount[LoadDate] <> _LatestDate,1,0)
You can then use the MissingFlag field to sum how many are missing compared to latest loaddate.
Proud to be a PBI Community Champion
@Joorge_C Please provide the sample data and your expected output to suggest you an accurate solution.
Proud to be a PBI Community Champion
Hello Thanks... so something like this. Transaction 1 and 2 where closed in Febuary since they are no longer existent.
I would need to count how many where closed on the last loaded date.
Loaded date | Transaction | Row |
1/1/2019 | 123 | 1 |
1/1/2019 | 234 | 2 |
1/1/2019 | 345 | 3 |
2/1/2019 | 345 | 4 |
@Joorge_C To make it clear, the transactions 123 and 234 didn't apper on the latest Loaded Date i.e. 02/01/2019 and you want this count to be 2. Is that correct ? Do you want this as a new column ?
Proud to be a PBI Community Champion
Correct, you are right on!
@Joorge_C Please try this as a New Column
MissingFlag = VAR _LatestDate = MAX(Test221PrevTransMissingCount[LoadDate]) VAR _Check = LOOKUPVALUE(Test221PrevTransMissingCount[Transaction],Test221PrevTransMissingCount[Transaction],Test221PrevTransMissingCount[Transaction],Test221PrevTransMissingCount[LoadDate],_LatestDate) RETURN IF(ISBLANK(_Check) && Test221PrevTransMissingCount[LoadDate] <> _LatestDate,1,0)
You can then use the MissingFlag field to sum how many are missing compared to latest loaddate.
Proud to be a PBI Community Champion
MUCH APPRICIATED!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
100 | |
78 | |
76 | |
52 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |