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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jh2
Frequent Visitor

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
jh2
Frequent Visitor

@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

@jh2  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

@jh2  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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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