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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Thomas_MedOne
Helper III
Helper III

Data won't add up

I've been trying to figure out how to search on this but I am not finding people complaining on this problem. I probably don't know how to properly search for what I'm looking for...

 

I have a table that is pretty simple..  AWVbyUser

DateAdsidother columns...
5/1/2023123...
5/1/2023156...
5/1/2023145...
5/2/2023123...
5/2/2023114...

 

I created a measure: AWCompleted = CountA(AWVbyUser[Asid])

 

When I display the data as a table visual they are not calculating. I get:

DateCompleted
5/1/20231
5/1/20231
5/1/20231
5/2/20231
5/2/20231

 

I should be getting like 5/1/2023, 3 and 5/2/2023, 2

 

I have a calendar visual and when I switch to that, the calendar simply shows a "1" on every day that something was done rather than the total amount.

 

Originally the Date field was a date/time field with a unique timestamp too but I copied the column and reformatted it to be just date. So, I thought this would be fine.  Is that the problem somehow? It sees date as a unique value?

If I remove Date and add the person's name, it summarizes the data and calculates but adding date it goes back to each individual date.  I don't get it.

1 ACCEPTED SOLUTION

Why don't you use the original date column?





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





View solution in original post

6 REPLIES 6
ray_aramburo
Super User
Super User

Try this instead:

AWCompleted = COUNTROWS('TableName')





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





Same Result.  Now there are two date columns. An Admission date column and this date column. Admission date is linked to a date table that is used in slicers on the page.  When I link that to the date colunn here it breaks everything on the page.  But I thought I heard that relationships can mess things up when calculating.

It is as if it's seeing each date field as a unique value when it's not.  I have a similar table and visual that works just fine and I can't seem to figure out why that works and this doesn't.

Why don't you use the original date column?





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





I don't know why it works but using admission date in the date/table puts the data in the right "end date" box and summarizes the data. It doesn't make sense to me but it is working and validated.

The Admission date column? I can try that to see what happens but the report is how many this person "completed" so the "enddate" column is what I need to display.  the Admission date may have been months ago but the procedure was completed this month. 

The original enddate value is a date/time stamp but I only need to know how many per day so I transformed the column to a date-only field.

Putting Admission date in did make it calculate right. So, I guess it has something to do with the relationship?  I added a secondary relationship to the table and I used calculate and "use relationship" for the measure and that resulted in zero values.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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