The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
The following is a summary of my data:
ID TransactionCODE Amount
1001 OPEN 1000
1001 CHARGE1 100
1002 CHARGE1 70
1002 CHARGE2 110
1003 OPEN 1100
1004 OPEN 1500
1004 CHARGE1 70
1005 CHARGE1 90
'OPEN' means the cost of opening an account. Sometimes this cost is waived off and therefore no entry is made.
I want to find out which unique IDs don't have the 'OPEN' entry in them. From the above dataset, my result should be a column:
ID
1002
1005
(1002 has CHARGE1 and CHARGE2 but no OPEN. 1005 has CHARGE1 but no OPEN)
Please help!
Solved! Go to Solution.
Hi @danialsj ,
This is a column added to your data using the code below.
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
No Open col = var Target = "OPEN" var ISOPEN = If(CALCULATE(MAX('ID'[ID]),FILTER(ALLEXCEPT('ID','ID'[ID]),'ID'[TransformationCode]=Target)),BLANK(),'ID'[ID]) return ISOPEN
Proud to be a Super User!
Hi @danialsj ,
This is a column added to your data using the code below.
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
No Open col = var Target = "OPEN" var ISOPEN = If(CALCULATE(MAX('ID'[ID]),FILTER(ALLEXCEPT('ID','ID'[ID]),'ID'[TransformationCode]=Target)),BLANK(),'ID'[ID]) return ISOPEN
Proud to be a Super User!
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 August 2024 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
20 | |
17 | |
15 | |
14 |
User | Count |
---|---|
43 | |
36 | |
25 | |
22 | |
19 |