Forum Discussion
Anonymous
3 years agoNot applicable
DAX Measure error - to remove fixed values with table column fields
Hi Experts The following measure currently has fixed values i want to changes thes to table column fields. Current MEasure Measure 2 =
VAR _CountryStore = "(Cananda),(Italy);[004],[005]"
V...
- 3 years ago
You could try something like
Selected countries and stores = VAR _Countries = "( " & CONCATENATEX( VALUES( 'pg_control_cases'[country_dim.country_name] ), 'pg_control_cases'[country_dim.country_name], "," ) & " )" VAR _Stores = "( " & CONCATENATEX( VALUES( 'pg_control_cases'[bu_code] ), 'pg_control_cases'[bu_code], ", " ) & " )" RETURN _Countries & ";" & _Stores
johnt75
3 years agoSuper User
You could try something like
Selected countries and stores =
VAR _Countries =
"( "
& CONCATENATEX(
VALUES( 'pg_control_cases'[country_dim.country_name] ),
'pg_control_cases'[country_dim.country_name],
","
)
& " )"
VAR _Stores =
"( "
& CONCATENATEX(
VALUES( 'pg_control_cases'[bu_code] ),
'pg_control_cases'[bu_code],
", "
)
& " )"
RETURN
_Countries & ";" & _StoresAnonymous
3 years agoNot applicable
Hi Johnt75 - last question
https://community.powerbi.com/t5/Desktop/DAX-measure-error-need-to-seperate-Country-and-stores/m-p/3202829#M1078422
Small edit to the DAX please