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.
Hi All,
In my stacked column chart I need a constant line with a measure from my dataset, which changes every day.
I read some solutions (workarounds) with a min or max line in this community, however that does not work for me and is not available in the stacked column chart.
Any solutions/suggestions will be highly appreciated!
Thanks in advace!
Beste regards,
Patrick Posthuma
The Netherlands.
Solved! Go to Solution.
Hi, @Anonymous
Based on your description, I created data to reproduce your scenario.
Table:
Calendar(a calculated table):
Calendar = CALENDARAUTO()
There is a one-to-one relationship between two tables.
You may create two measures like below. 'Max value' is to calculate the max value of 'Value' column in the data model. 'Min value' is to calculate the min value of 'Value' column in the data model.
Max value =
CALCULATE(
MAX('Table'[Value]),
ALL('Table')
)
Min value =
CALCULATE(
MIN('Table'[Value]),
ALL('Table')
)
I'd like to suggest you use 'Line and stacked column chart' to display the result.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
Based on your description, I created data to reproduce your scenario.
Table:
Calendar(a calculated table):
Calendar = CALENDARAUTO()
There is a one-to-one relationship between two tables.
You may create two measures like below. 'Max value' is to calculate the max value of 'Value' column in the data model. 'Min value' is to calculate the min value of 'Value' column in the data model.
Max value =
CALCULATE(
MAX('Table'[Value]),
ALL('Table')
)
Min value =
CALCULATE(
MIN('Table'[Value]),
ALL('Table')
)
I'd like to suggest you use 'Line and stacked column chart' to display the result.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous
You can create a static measure
New Measure = 10
Or you can use a few options from analytics section
Sorry I do not understand you, a static measure is not what i am looking for.
The constant line must have the value of a column in my dataset.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
94 | |
83 | |
66 | |
59 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |