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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Table header showing wrong number of values

I am working on someone's project. The table heading in the Power BI desktop is showing the wrong total number of items. As in the figure, there is just 1 item in the table but in the table heading it's showing 2. I looked at the format option but couldn't find the solution. Did anyone get the solution for this? Thank you

question.jpg

 

1 ACCEPTED SOLUTION

@Anonymous , Try like

New Projects = CALCULATE(
SUMX(values( 'Projects (2)'[project code &]),'Projects (2)'[Value]),
FILTER( 'Projects (2)', 'Projects (2)'[Created] >= MIN( Workday[Date] ) && 'Projects (2)'[Created] <= MAX( Workday[Date] ))
)

View solution in original post

4 REPLIES 4
PC2790
Community Champion
Community Champion

Would it be possible for you to share the pbix file as we need to trace from where the header is coming and see the logic applied  to calculate the number. Ideally it should be in sync with the logic that has been applied to get the table values

PC2790
Community Champion
Community Champion

Can you advise what logic has been applied on to show the number of items in the header? 

Anonymous
Not applicable

checked everywhere but couldn't find the logic. The following DAX formula is used to get the value in the table:

New Projects = CALCULATE(
SUM( 'Projects (2)'[Value]),
FILTER( 'Projects (2)', 'Projects (2)'[Created] >= MIN( Workday[Date] ) && 'Projects (2)'[Created] <= MAX( Workday[Date] ))
)

And this formula returns just a single item in the table but table header is showing 2.

 

@Anonymous , Try like

New Projects = CALCULATE(
SUMX(values( 'Projects (2)'[project code &]),'Projects (2)'[Value]),
FILTER( 'Projects (2)', 'Projects (2)'[Created] >= MIN( Workday[Date] ) && 'Projects (2)'[Created] <= MAX( Workday[Date] ))
)

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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