The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi ,
I want to dislplay selected filters/selections made by User in a textbox. In order to achieve this I have used below query
Here, Even If nothing is selected by users, I want to display "All ACHFB", but I want to get rid of the highlighed data"Invalid","Not aplicable"" etc.
For that I need DAX,. Please help.
Solved! Go to Solution.
Hi @Anonymous ,
I created a sample pbix file(see attachment) for you, please check whether that is what you want. You can create a measure as below:
Label XX =
IF (
ISFILTERED ( 'ACHFB_SDM_PBI_V'[ACHFB] ),
CONCATENATEX (
FILTER (
VALUES ( 'ACHFB_SDM_PBI_V'[ACHFB] ),
NOT ( 'ACHFB_SDM_PBI_V'[ACHFB]
IN { "- - INVALID", "$ - NOT APPLICABLE", "- NOT AVAILABLE", "? - UNKNOWN" } )
),
'ACHFB_SDM_PBI_V'[ACHFB],
","
),
"All ACHFB"
)
Best Regards
Hi @Anonymous ,
I created a sample pbix file(see attachment) for you, please check whether that is what you want. You can create a measure as below:
Label XX =
IF (
ISFILTERED ( 'ACHFB_SDM_PBI_V'[ACHFB] ),
CONCATENATEX (
FILTER (
VALUES ( 'ACHFB_SDM_PBI_V'[ACHFB] ),
NOT ( 'ACHFB_SDM_PBI_V'[ACHFB]
IN { "- - INVALID", "$ - NOT APPLICABLE", "- NOT AVAILABLE", "? - UNKNOWN" } )
),
'ACHFB_SDM_PBI_V'[ACHFB],
","
),
"All ACHFB"
)
Best Regards
@Anonymous , try to add filter concatenatex
example, add additional values
Label XX =
If(NOT(ISFILTERED(ACHFB_SDM_PBI_V[ACHFB])),"All ACHFB",Concatenate("ACHFB - ",If(ISFILTERED(ACHFB_SDM_PBI_V[ACHFB]),
calculate( CONCATENATEX(VALUES(ACHFB_SDM_PBI_V[ACHFB]),ACHFB_SDM_PBI_V[ACHFB],","), filter(ACHFB_SDM_PBI_V , not ACHFB_SDM_PBI_V[ACHFB] in {"--INVALID",""$_NOT APPLICABLE,"?-UNKNOWN"} ) ) )))
User | Count |
---|---|
14 | |
12 | |
7 | |
6 | |
5 |
User | Count |
---|---|
28 | |
18 | |
13 | |
7 | |
5 |