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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
brockry1
Helper II
Helper II

Trying to sum events by Region Manager

I hvae this as my DAX formula and it is working to bring back all the events completed.

 

# of completed events/Visits = CALCULATE(DISTINCTCOUNT('Event & Task'[ID]),'Event & Task'[Status (Consolidated)]="Completed")
 
The Region Manager is in my "Account" table.
 
brockry1_0-1739982289727.png

How do I add to the formula to sum by Region? 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @brockry1 ,
Can't determine what your data structure looks like, here's a sample of data created from your description.
Event & Task

ID Status (Consolidated) Key
1001 Completed 1
1002 Incompleted 1
1001 Completed 1
1002 Completed 2
1003 Completed 2
1004 Completed 2
1005 Completed 3
1006 Completed 4
1006 Incompleted 4
1006 Incompleted 4

Account

Region Key
A 1
B 2
C 3
D 4

Make sure there is a relationship between the two tables

vheqmsft_0-1740020998286.png

Create a measure

EventCount = 
CALCULATE(
    DISTINCTCOUNT('Event & Task'[ID]),
    FILTER(
        ALLEXCEPT(
           'Event & Task',
            Account[Key]
        ),
        'Event & Task'[Status (Consolidated)] = "Completed"
    )
)

Final output

vheqmsft_1-1740021034011.png

 

Best regards,
Albert He


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @brockry1 ,
Can't determine what your data structure looks like, here's a sample of data created from your description.
Event & Task

ID Status (Consolidated) Key
1001 Completed 1
1002 Incompleted 1
1001 Completed 1
1002 Completed 2
1003 Completed 2
1004 Completed 2
1005 Completed 3
1006 Completed 4
1006 Incompleted 4
1006 Incompleted 4

Account

Region Key
A 1
B 2
C 3
D 4

Make sure there is a relationship between the two tables

vheqmsft_0-1740020998286.png

Create a measure

EventCount = 
CALCULATE(
    DISTINCTCOUNT('Event & Task'[ID]),
    FILTER(
        ALLEXCEPT(
           'Event & Task',
            Account[Key]
        ),
        'Event & Task'[Status (Consolidated)] = "Completed"
    )
)

Final output

vheqmsft_1-1740021034011.png

 

Best regards,
Albert He


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

LYPowerBI
Frequent Visitor

CALCULATE(
DISTINCTCOUNT('Event & Task'[ID]),
'Event & Task'[Status (Consolidated)]="Completed",
'Account'[Region Manager] = "xxx")

Does this work for your question?

LYPowerBI
Frequent Visitor

I did not 100% understand your question. but one way to calculate the #Event completed by region manager xxxxx might be = CALCULATE(
DISTINCTCOUNT('Event & Task'[ID]),
'Event & Task'[Status (Consolidated)]="Completed",
'Account'[Regino Manger] = "xxxxx"),
Depending on you, you may consider to add KEEPFILTER on the filter expression.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.