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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
cubedweller
Regular Visitor

clustered column chart displaying incorrect count based on new column

I created the following two New Columns:

1) Completed Past Due = SWITCH(TRUE(), CV_EC[Task Due Date] < CV_EC[Task Finished Date] && NOT(ISBLANK(CV_EC[Task Finished Date])) && CV_EC[Status]="Completed", 1, BLANK())

2) Completed On-Time = SWITCH(TRUE(), CV_EC[Task Due Date] >= CV_EC[Task Finished Date] && NOT(ISBLANK(CV_EC[Task Finished Date])) && CV_EC[Status]="Completed", 1, BLANK())

 

When viewing the data using a Table everything looks fine (see Table_Correct_Data). The number of records with Completed Past Due is correctly showing 20. Completed On-Time is also correct. However, when I attempt to the sum the number Completed Past Due using a clustered column chart or Card the total displayed is 912 (see Graph Incorrect). I've checked that the filters are the same for the Table, clustered column chart, and Card.

Any ideas on how to fix this?

 

Table_Correct_DataTable_Correct_Data

 

Graph IncorrectGraph Incorrect

1 ACCEPTED SOLUTION

Hi Yuliana,

I found the problem.

It was a data issue. 

The graph is working fine now.

Thank you.

View solution in original post

3 REPLIES 3
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @cubedweller,

 

It's hard to say what caused the incorrect value in chart and card visual based on current information. Would you please share your .pbix file so that I can check? Remove senssitive data before uploading.

 

Best regards,

Yuliana Gu

 

 

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Yuliana,

I found the problem.

It was a data issue. 

The graph is working fine now.

Thank you.

Hi Yuliana,

I'd rather not upload my .pbix file.

I'm guessing it's just a minor issue that I'm not seeing. 

Would I be better off creating a new measure instead of a new column?

If so, how should I change my new column formula (shown below) in order to work as a new measure?

 

Completed Past Due = SWITCH(TRUE(), CV_EC[Task Due Date] < CV_EC[Task Finished Date] && NOT(ISBLANK(CV_EC[Task Finished Date])) && CV_EC[Status]="Completed", 1, BLANK())

 

If you don't think this is the issue can you recommend any other ways to isolate what's causing the incorrect values?

 

Thank you.

 

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 FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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