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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
VenkateshLanka
Regular Visitor

Multiple Incident employee count based on selected date range.

Hello,

I am looking for multiple incident employee count based on selected date range.
Deacription : - If any employee involved more then once incident in year need show, please see the below screenshot for more datails.
Location information form location table employee info from MIE table (relation many to one cross filter both dirction ) please help thank you.MIE .png

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @VenkateshLanka ,

According to your description, here's my solution.

Sample:

vyanjiangmsft_0-1690876107963.png

Create a measure:

Measure =
VAR _count =
    CALCULATE (
        DISTINCTCOUNT ( 'Table'[Incident Category] ),
        ALLSELECTED ( 'Table' )
    )
RETURN
    IF ( _count > 1, MAX ( 'Table'[Incident Category] ), BLANK () )

Get the correct result:

vyanjiangmsft_1-1690876502741.png

vyanjiangmsft_2-1690876529990.png

I attach my sample below for your reference.

 

Best regards,

Community Support Team_yanjiang

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

2 REPLIES 2
v-yanjiang-msft
Community Support
Community Support

Hi @VenkateshLanka ,

According to your description, here's my solution.

Sample:

vyanjiangmsft_0-1690876107963.png

Create a measure:

Measure =
VAR _count =
    CALCULATE (
        DISTINCTCOUNT ( 'Table'[Incident Category] ),
        ALLSELECTED ( 'Table' )
    )
RETURN
    IF ( _count > 1, MAX ( 'Table'[Incident Category] ), BLANK () )

Get the correct result:

vyanjiangmsft_1-1690876502741.png

vyanjiangmsft_2-1690876529990.png

I attach my sample below for your reference.

 

Best regards,

Community Support Team_yanjiang

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

foodd
Super User
Super User

Please provide your work-in-progress Power BI Desktop file (with sensitive information removed) that covers your issue or question completely in a usable format (not as a screenshot).

https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors