Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
87 | |
82 | |
71 | |
49 |
User | Count |
---|---|
143 | |
124 | |
107 | |
60 | |
55 |