Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have data from a Clinical Engagement Survey done at 16 hospitals. I created a new measure Clinical Engagement. I did this using the DAX formula: Clinical Engagement= DIVIDE(CALCULATE(COUNT(‘Clinical Experience Survey’[Overall clinical experience was a positive learning experience]), ‘Clinical Experience Survey’ [Overall clinical experience was a positive learning experience]=“Agree”||’Clinical Experience Survey’[Overall clinical experience was a positive learning experience]=“Strongly Agree”),CALCULATE(COUNT(‘Clinical Experience Survey’ [Overall clinical experience was a positive learning experience]),ALLEXCEPT(‘Clinical Experience Survey’, ‘Clinical Experience Survey’[Facility])),0)
how do I update this to make a new measure so that this percentage remains accurate when applying a date filter for each hospital
@Ggleeson You can try this DAX logic.
Clinical Engagement with Date Filter =
DIVIDE(
CALCULATE(
COUNT('Clinical Experience Survey'[Overall clinical experience was a positive learning experience]),
'Clinical Experience Survey'[Overall clinical experience was a positive learning experience] IN {"Agree", "Strongly Agree"},
ALLEXCEPT('Clinical Experience Survey', 'Clinical Experience Survey'[Facility]),
FILTER(ALLSELECTED('Date'[Date]), 'Date'[Date] >= MAX('Date'[Date]))
),
CALCULATE(
COUNT('Clinical Experience Survey'[Overall clinical experience was a positive learning experience]),
ALLEXCEPT('Clinical Experience Survey', 'Clinical Experience Survey'[Facility]),
FILTER(ALLSELECTED('Date'[Date]), 'Date'[Date] >= MAX('Date'[Date]))
),
0
)
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
11 | |
9 | |
6 |