Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Hi all, so I have a unit table that brings sales data (including item IDs on each transaction, so I may have more than 2 rows per transactions). I have already grouped by transactions on another table, but I need to create a column on the other table thats tags whether a transaction contains a unit that was "yes" for GWP. So basically, when one of the units inside a transaction has GWP "Yes", that transaction should be classified as GWP transaction.
Solved! Go to Solution.
For a column, you can try like this?
Is GWP Transaction =
var _TxID = 'Table1'[Transaction Number]
var _IsGWP = IF ( COUNTROWS( FILTER( all('Table1'), 'Table1'[Transaction Number] = _TxID && 'Table1'[GWP Unit] = "Yes")) > 0, "Yes", "No")
Return _IsGWP
THANK YOU SO MUCH!!!! This worked like a charm!!!
Glad it worked 😊
For a column, you can try like this?
Is GWP Transaction =
var _TxID = 'Table1'[Transaction Number]
var _IsGWP = IF ( COUNTROWS( FILTER( all('Table1'), 'Table1'[Transaction Number] = _TxID && 'Table1'[GWP Unit] = "Yes")) > 0, "Yes", "No")
Return _IsGWP
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
102 | |
68 | |
45 | |
37 | |
37 |