Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi experts!
I have a table that shows me the status per sales order for specific regions:
| Sales Order | Region | Status |
| 100 | ADB | Z |
| 101 | ADB | Z |
| 100 | ADB | X |
| 101 | ADB | X |
| 102 | PRI | O |
Now I would like to create a calculated column that shows me per Sales Order if there is an entry for a Sales Order and Region combination with the value 'X'. If so, all rows with this combination should get TRUE, otherwise FALSE.
How is this possible?
Solved! Go to Solution.
Hi @joshua1990
Please use the following
Flag =
NOT ISEMPTY (
CALCULATETABLE (
Sales,
ALLEXCEPT ( Sales, Sales[Sales Order], Sales[Region] ),
Sales[Status] = "X"
)
)
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
It is for creating a new column.
Condition CC =
VAR _currentsalesorder = Data[Sales Order]
VAR _currentregion = Data[Region]
VAR _newtablecondition =
"X"
IN SUMMARIZE (
FILTER (
Data,
Data[Sales Order] = _currentsalesorder
&& Data[Region] = _currentregion
),
Data[Status]
)
RETURN
DIVIDE ( _newtablecondition, _newtablecondition ) + 0
Hi @joshua1990
Please use the following
Flag =
NOT ISEMPTY (
CALCULATETABLE (
Sales,
ALLEXCEPT ( Sales, Sales[Sales Order], Sales[Region] ),
Sales[Status] = "X"
)
)
Would it be this?
Did I solve your problem?
Please mark as solution so others can find this solution.
https://www.linkedin.com/in/rodrigosanpbi/
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 15 | |
| 10 | |
| 8 | |
| 6 | |
| 5 |