Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi Experts
How would i apply an addtional filter to the following DAX
Measure = VAR __Table = FILTER('eda_edetailing_slides_used', [drmf_clm_presentation_slide_id] <> BLANK()) VAR __Column1 = SELECTCOLUMNS(__Table,"__Column",[crm_call_name]) VAR __Column2 = SELECTCOLUMNS(__Table,"__Column",[crmf_hcp_id]) RETURN COUNTROWS(DISTINCT(UNION(__Column1, __Column2)))
Filter
eda_edetailing_slides_used[activity_type_1] IN {"f2f", "Virtual"}))
Solved! Go to Solution.
MyMeasure =
VAR __Table =
FILTER (
'eda_edetailing_slides_used',
NOT ( ISBLANK ( [drmf_clm_presentation_slide_id] ) )
&& eda_edetailing_slides_used[activity_type_1] IN { "f2f", "Virtual" }
)
VAR __Column1 =
SELECTCOLUMNS ( __Table, "__Column", [crm_call_name] )
VAR __Column2 =
SELECTCOLUMNS ( __Table, "__Column", [crmf_hcp_id] )
RETURN
COUNTROWS ( DISTINCT ( UNION ( __Column1, __Column2 ) ) )
MyMeasure =
VAR __Table =
FILTER (
'eda_edetailing_slides_used',
NOT ( ISBLANK ( [drmf_clm_presentation_slide_id] ) )
&& eda_edetailing_slides_used[activity_type_1] IN { "f2f", "Virtual" }
)
VAR __Column1 =
SELECTCOLUMNS ( __Table, "__Column", [crm_call_name] )
VAR __Column2 =
SELECTCOLUMNS ( __Table, "__Column", [crmf_hcp_id] )
RETURN
COUNTROWS ( DISTINCT ( UNION ( __Column1, __Column2 ) ) )
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
113 | |
99 | |
85 | |
35 | |
35 |
User | Count |
---|---|
150 | |
100 | |
78 | |
61 | |
56 |