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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Chart data not resembling table data. Please help!

Hi there,

I created a measure to display actuals (if date is prior to todays date/past) and predicted values (post today/future). These values are showing as intended in a table visual (below). But when I use the measure on my combo chart (to represent the bars) these only map correctly up until today. All predicted values (although present in the table column) are wrong.

Please help. This chart uses the one measure created, which operates perfectly fine in the table. See totals on chart for comparisons.

 

594b66bc-3849-433f-bd0f-d2d257a86914.png

Screenshot 2.PNG

 

 

 

 

3 REPLIES 3
Anonymous
Not applicable

@AllisonKennedy Thank you for your response.

 

Measure used: 

Actuals and Forecast =
VAR LastActualDate =
CALCULATE(
MAX('Process Improvement Tracker'[Date]),
REMOVEFILTERS()
)
VAR Result =
IF(
MAX('FTE Year Roadmap'[Date]) < TODAY(),
'Process Improvement Tracker'[Cumulative Deployed Saving],
'FTE Year Roadmap'[Year Estimate Cumulative Savings]
)
RETURN
Result
 
The legend of my chart includes Cohort.
Legend.PNG

@Anonymous  How are Process Improvement Tracker and FTE Year Roadmap related?

 

It looks like Cumulative Deployed Savings and Year Estimate Cumulative Savings are both measures??? If so, what's the DAX for them too please?

 

What table is Cohort in?

 

I think a SUMX will likely solve your problem, but need more info to be certain.

 

For example: 

 

Actuals and Forecast =
VAR LastActualDate =
CALCULATE(
MAX('Process Improvement Tracker'[Date]),
REMOVEFILTERS()
)
VAR Result =
SUMX( 'Process Improvement Tracker',
IF(
MAX('FTE Year Roadmap'[Date]) < TODAY(),
'Process Improvement Tracker'[Cumulative Deployed Saving],
'FTE Year Roadmap'[Year Estimate Cumulative Savings]
)
)
RETURN
Result

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

AllisonKennedy
Super User
Super User

@Anonymous  We need a lot more info please. What is the DAX for your measure currently? What does the raw data model look like?

 

The reason it works in the table but not in the chart is that you have a different CONTEXT in both. What's in the legend of your chart? Add this to your table and you'll see it doesn't work anymore. You need to troubleshoot how that column filters the value you're displaying in the measure. Hope that helps? If you provide us with more details we can be more specific.


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

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 MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.