Forum Discussion
Line value missing from combination chart
- 6 years ago
You have not selected total employee that is why it is filtered try with measure having all like
Total Employee new = calculate(Statistic[Total Employee],Filter(all(Statistic),[Statistic]="Employee")
or
Total Employee new = calculate(sum(Statistic[Value),Filter(all(Statistic),[Statistic]="Employee")
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Connect on Linkedin
hi Anonymous
If possible, could you please share your sample pbix file for us have a test, there should be something wrong in other.
You can upload it to OneDrive and post the link here. Do mask sensitive data before uploading.
Regards,
Lin
Thanks again for sticking with this.
I tried to reproduce the issue in a simple PowerBI report but I couldn't actually get to my original screenshot with the measure appearing in the table but not appearing in the chart.
So I don't understand how I got the original screenshot in my question as I can't reproduce it now.
Anyway I fiddled with the DAX and actually found that amitchandak first suggestion was correct around the DAX. So I'll mark his answer as correct in this case - I hope you don't mind.
To summarise, this DAX expressions do not give the required result
Total Employees = CALCULATE(
SUM(Statistics[Value]),
FILTER(
Statistics,
[Statistic]="Total Employees"
)
)
and this expression does:
Total Employees = CALCULATE(
SUM(Statistics[Value]),
FILTER(
ALL(Statistics),
[Statistic]="Total Employees"
)
)