Forum Discussion
No total value for measure
Hi
I have measure, calculated outcome is correct but there is no total value. why?
sales_PY = CALCULATE(
[_Sales],
FILTER(ALL(Total_data),
'Total_data'[year_week] = SELECTEDVALUE('Total_data'[year_week]) - 100
&& Total_data[Region] IN VALUES(Total_data[Region])
&& Total_data[Bascet] IN VALUES(Total_data[Bascet])
&& Total_data[Company] IN VALUES(Total_data[Company])
))
- Anonymous2 years ago
Hi, Florek
Did my answer solve your problem? If it helps you solve the problem, I hope you will accept my answer as a solution, which can help community members who have similar problems to you find a solution faster.For questions about uploading data, you can try the following links:
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
Solved: How to upload PBI in Community - Microsoft Fabric Community
Please be careful to remove sensitive information and protect your important information.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
4 Replies
- AnonymousNot applicable
Thanks for the reply from ryan_mayu , please allow me to provide another insight:
Hi, Florek
In response to your question, I offer two approaches:
1.The first is to use the HASONEFILTER () function as the basis for judgment, and then output the SUMX () function as the aggregate.
Here are the related links, I hope you will be helpful:
Dealing with Measure Totals - Microsoft Fabric Community
Measure Totals, The Final Word - Microsoft Fabric Community
2.The second is to convert the measures into groups of calculations and then modify the aggregation:
You can try the following code as a calculated column:
Then modify the way it aggregates:
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- ryan_mayu
Super User
could you pls provde some sample data? i think myabe that's because you restricted the row value.
SELECTEDVALUE('Total_data'[year_week]) - FlorekFrequent Visitor
Hi Anonymous
excludnig 'selectedvalue' function for testing brings total back. But how I should include this condition to calculation different way?
I can't upload any file here ;/
- AnonymousNot applicable
Hi, Florek
Did my answer solve your problem? If it helps you solve the problem, I hope you will accept my answer as a solution, which can help community members who have similar problems to you find a solution faster.For questions about uploading data, you can try the following links:
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
Solved: How to upload PBI in Community - Microsoft Fabric Community
Please be careful to remove sensitive information and protect your important information.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.