Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi,
im currenty using report server and i have this table:
Item ID | Quantity | Status |
1 | 2 | available |
1 | 2 | available |
3 | 3 | Issue |
3 | 4 | invalid |
I would like to add a column which can identify if quantity is equals when its same "Item ID" AND checks if Status is "Available".
Earlier Function didnt work cause the table doesnt has logical order for this function.
Thank in Advanced
Solved! Go to Solution.
Hi @dshmulenson ,
Please try below steps:
1. below is my test table
Table:
2. create a new column with below dax formula
IsQuantityEqualForAvailableStatus =
VAR currentItemID = 'Table'[Item ID]
VAR currentQuantity = 'Table'[Quantity]
VAR availableItemsSameID =
FILTER (
ALL ( 'Table' ),
'Table'[Item ID] = currentItemID
&& 'Table'[Status] = "available"
)
RETURN
IF (
COUNTROWS ( availableItemsSameID ) > 1
&& CALCULATE ( MIN ( 'Table'[Quantity] ), availableItemsSameID ) = currentQuantity
&& CALCULATE ( MAX ( 'Table'[Quantity] ), availableItemsSameID ) = currentQuantity,
"Yes",
"No"
)
Please refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @dshmulenson ,
Please try below steps:
1. below is my test table
Table:
2. create a new column with below dax formula
IsQuantityEqualForAvailableStatus =
VAR currentItemID = 'Table'[Item ID]
VAR currentQuantity = 'Table'[Quantity]
VAR availableItemsSameID =
FILTER (
ALL ( 'Table' ),
'Table'[Item ID] = currentItemID
&& 'Table'[Status] = "available"
)
RETURN
IF (
COUNTROWS ( availableItemsSameID ) > 1
&& CALCULATE ( MIN ( 'Table'[Quantity] ), availableItemsSameID ) = currentQuantity
&& CALCULATE ( MAX ( 'Table'[Quantity] ), availableItemsSameID ) = currentQuantity,
"Yes",
"No"
)
Please refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You should be able to group across these three columns and then return all the groups where the rowcount is greater than 1.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
5 | |
4 | |
3 | |
2 | |
2 |