Forum Discussion
joshua1990
4 years agoPost Prodigy
Calculated Column Count same table multiple filters
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 ...
- 4 years ago
Hi joshua1990
Please use the followingFlag = NOT ISEMPTY ( CALCULATETABLE ( Sales, ALLEXCEPT ( Sales, Sales[Sales Order], Sales[Region] ), Sales[Status] = "X" ) )
Jihwan_Kim
4 years agoSuper User
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