Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
Trying to count the number of CarerRef if the StartDate was before the date in a related table.
Trying -> Count Carer Ref = CALCULATE(COUNTROWS(CarersList),CarersList[CarerRef],CarersList[StartDate] < RELATEDTABLE(vw_ShiftsAll),vw_ShiftsAll[iDate])
Getting error The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.
Any ideas what I need to change?
Solved! Go to Solution.
Hi @android1
Please give this calculated column a go.
Column = CALCULATE( COUNTROWS('vw_ShiftsAll'), 'vw_ShiftsAll'[iDate] > EARLIER('CarersList'[StartDate]) )
Hi @android1
Do you want this to be a calculated column or calculated measure?
Which table is on the One side of the one-to-many relationship between 'CarersList' and 'vw_ShiftsAll' ?
Hi @android1
Please give this calculated column a go.
Column = CALCULATE( COUNTROWS('vw_ShiftsAll'), 'vw_ShiftsAll'[iDate] > EARLIER('CarersList'[StartDate]) )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |