March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
Hello!
I have a problem,
I use a stacked area chart on a date-axis with a few categoty-filters like this:
I want to add a measure on top.
How do I do that? The only place i can add a measure on is in tooltips:
Solved! Go to Solution.
Hi @Anonymous ,
There is another way, I don’t know if you accept it.
First create a separate table:
Category =
UNION(
DISTINCT('Table'[KPI - Category]),
{"1S or lower"}
)
Then use the following measure:
Measure =
IF(
MAX(Category[KPI - Category])= "1S or lower",
[1S or lower],
CALCULATE(
SUM('Table'[Value]),
FILTER( 'Table', 'Table'[KPI - Category] = MAX(Category[KPI - Category]) )
)
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hey @Anonymous ,
why can't you add it to the values field?
@selimovd
That is my question. When I try to add a measure, it just replaces the column.
Could it be because of the legend somehow?
Hi @Anonymous ,
You are right. If you add a lengend, then you can only add a field in the Values pane. I think you need to replace the legend with measures, like this:
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you. It would solve the issue but its very clunky.
Hi @Anonymous ,
There is another way, I don’t know if you accept it.
First create a separate table:
Category =
UNION(
DISTINCT('Table'[KPI - Category]),
{"1S or lower"}
)
Then use the following measure:
Measure =
IF(
MAX(Category[KPI - Category])= "1S or lower",
[1S or lower],
CALCULATE(
SUM('Table'[Value]),
FILTER( 'Table', 'Table'[KPI - Category] = MAX(Category[KPI - Category]) )
)
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
134 | |
90 | |
90 | |
66 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
70 | |
68 |