Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
Hello,
I am trying to create a measure which will count the number of rows in a column that have a number of less than 36 and more than 36 (but not any that are 36).
MidYearAdm = CALCULATE(COUNTROWS('Pupil[week number]),Pupil[week number]IN{"<36",">36"})
Would anyone know what is the best way to do this please?
Thank you, Helen
Solved! Go to Solution.
@hellyLoft , Try like
MidYearAdm = CALCULATE(COUNTROWS('Pupil'[week number]),filter(Pupil,Pupil[week number] <36 || Pupil[week number] >36 ))
@hellyLoft
MidYearAdm = CALCULATE(COUNTROWS('Pupil[week number]),Pupil[week number] <> 36)
________________________
Did I answer your question? Mark this post as a solution, this will help others!.
Click on the Thumbs-Up icon on the right if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@hellyLoft , Try like
MidYearAdm = CALCULATE(COUNTROWS('Pupil'[week number]),filter(Pupil,Pupil[week number] <36 || Pupil[week number] >36 ))
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.