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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.