Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be 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

Reply
PavanSateesh
New Member

Need Help in building dax formula

Hello Fellas,

 

Could you please help me in building Dax formula for identifiying No of meetings conducted with full attendance in my data set.

 

I am blank here as to how can i do this... My data set has only 3 columns first being the Meeting ID and Employee ID and Attendance.

If all the employees attendance is Y for a set meeting ID then my count is 1 like wise i need to do this for the huge set of rows

 

Question.png

Regards,

Pavan S

1 ACCEPTED SOLUTION
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @PavanSateesh,

Based on my understanding, please create a calculated column using the formula.

Flag =
IF (
    CALCULATE ( COUNT ( Table[MeetingID] ), ALLEXCEPT ( Table, Table[MeetingID] ) )
        = CALCULATE (
            COUNT ( Table[MeetingID] ),
            FILTER ( ALLEXCEPT ( Table, Table[MeetingID] ), Table[Attendance] = "Y" )
        ),
    1,
    0
)


If the Flag is 1, it means the Meeting is full attendance. So you can create a slicer including Flag, a table visual including all Meeting IDs, when you select 1 in slicer, you will get all the No of Meetings with full attendance.

Best Regards,
Angelia

View solution in original post

2 REPLIES 2
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @PavanSateesh,

Based on my understanding, please create a calculated column using the formula.

Flag =
IF (
    CALCULATE ( COUNT ( Table[MeetingID] ), ALLEXCEPT ( Table, Table[MeetingID] ) )
        = CALCULATE (
            COUNT ( Table[MeetingID] ),
            FILTER ( ALLEXCEPT ( Table, Table[MeetingID] ), Table[Attendance] = "Y" )
        ),
    1,
    0
)


If the Flag is 1, it means the Meeting is full attendance. So you can create a slicer including Flag, a table visual including all Meeting IDs, when you select 1 in slicer, you will get all the No of Meetings with full attendance.

Best Regards,
Angelia

MattAllington
Community Champion
Community Champion

There are many ways.  Assuming you load this table into the datamodel and call it Data, you could write this

 

=
SUMX (
    VALUES ( Data[Meeting] ),
    CALCULATE (
        IF (
            CALCULATE ( COUNTROWS ( Data), Data[Attendance] = "Y" )
                = COUNTROWS ( Data),
            1,
            0
        )
    )
)

 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.