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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
POSPOS
Post Partisan
Post Partisan

Incorrect Values in Scatter Plot

Hi All,

I have a requirement to show the count of ID as lables in Scatter Plot. I have created a column for the same but the values are not working as expected.
The expected result for dept 2 is 2 but it shows as 1 in the scatter plot. 

POSPOS_0-1715190350538.png

I have created a sample report with sample data here. Could someone suggest on how this can be achieved?
Thank you.

5 REPLIES 5
POSPOS
Post Partisan
Post Partisan

@Anonymous  - Thank you for the solution.

While testing, I noticed that the ID Table could not be joined with the Sal Table as the departments are not same in both these tables.
We will need to get the count of each dept from the ID table and not based on the dept from Sal table.

I added a new table "Owner" as per the requirement and joined with the ID table . Could you please help with the current design, I have updated the file here

POSPOS_1-1715272629571.png

 

Thank you.

Anonymous
Not applicable

Hi @POSPOS ,
Based on the example data you provided, it looks like your MEASURES are being created based on the Dept of the sal table, while your ids are derived from the ID table, which results in a different contextual environment than the COLUMN you are trying to create.
You can try creating the following column under the Sal table

Count = 
CALCULATE(
    COUNT(Sal[Dept]),
    FILTER(
        ALLEXCEPT(
            Sal,
            Sal[ID]
        ),
        RELATED('ID'[Appointment Date]) >= DATE(2022,07,01)
    )
)
Count of ID = 
CALCULATE(
    COUNT(Sal[Dept]),
    ALLEXCEPT(
        Sal,
        Sal[Dept]
    ),
    Sal[Count] = 1
)

Finally the Count of id column is applied to the image

vheqmsft_0-1715221386769.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

@Anonymous  - Thank you for the solution.

While testing, I noticed that the ID Table could not be joined with the Sal Table as the departments are not same in both these tables.
We will need to get the count of each dept from the ID table and not based on the dept from Sal table.

I added a new table "Owner" as per the requirement and joined with the ID table . Could you please help with the current design, I have updated the file here

POSPOS_1-1715272629571.png

 

Thank you.

Anonymous
Not applicable

Hi @POSPOS ,
Create a column under Owner table

Count of department = 
CALCULATE(
    COUNT('ID'[Count of ID]),
    FILTER(
        ALLEXCEPT(
            'ID',
            'ID'[Dept]
        ),
        'ID'[Appointment Date]>= DATE(2022,07,01)
    )
)

Create a column under Sal table

Count = 
CALCULATE(
    MIN(Owner[Count of department]),
    ALLEXCEPT(
        Sal,
        Sal[Dept]
    )
)

Final output

vheqmsft_0-1715310265408.png

vheqmsft_1-1715310276453.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

Hi @Anonymous  - I tried to replicate the same in the original report and I get same values for all the departments

POSPOS_0-1715347801220.png

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors