March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi all,
Relatively new to power bi and Dax and i'm sure this is probably an easy one, in sql would be a doddle, i want to count the rows in my table CurrentOccupants where the column OccupancyStatus is equal to Lead and Joint so something like:
No' Tenants = COUNTROWS(FILTER('CurrentOccupants','CurrentOccupants'[OccupancyStatus] = "Lead","Joint"))
I've tried searching and cant seem to find a solution to this.
Many thanks
Karen
Solved! Go to Solution.
Hi @KarenKazab
No' Tenants = COUNTROWS ( FILTER ( 'CurrentOccupants', 'CurrentOccupants'[OccupancyStatus] IN { "Lead", "Joint" } ) )
Hi @KarenKazab
No' Tenants = COUNTROWS ( FILTER ( 'CurrentOccupants', 'CurrentOccupants'[OccupancyStatus] IN { "Lead", "Joint" } ) )
Hi Zubair,
I tried your solution but received syntax error. May i know what could be wrong? I'm newbie in DAX PBI. Appreciate your help on this. Thanks!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |