Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi all,
So I am trying to create something like a process control chart. I have been able to do this , but my upper and lower limit lines work fine when x axis is month, but when I drill to Day level, it does not work as expected. I want it to behave as the buil in avg line behaves. so when I am at month level, the avg line shows month's average but when I am at day level it gives daily average.
I understand it is happening because if the way I have built measures- which is as following-
I do understand, that because I am summarizing by month, it is behaving like this but how do I modify it to behave as expected for month/day or whatever calendar hierarchy is there.
Thank you in advance
@v-jianpeng-msft Thank you. but I cannot train my users to do that.
I want to achieve the same functionality as the built in average line.
ex
The average value recalculates. I want to achieve similar results for upper control line and lower control line. Any help/guidance is appreciated.
Hi, @_Regina
Based on your description, I tried it using the following chart:
Here's my DAX expression:
_Avg line Signups =
AVERAGEX(
ADDCOLUMNS(
SUMMARIZE(ALLSELECTED('Calender'),'Calender'[Date]),
"avg",[Sum of price]
),
[avg])
When I use the arrow in the top right corner to get to the next level, the constant line doesn't change:
When I use the drill down function of the right-click menu, it is recalculated:
To make it easier to explain the problem with this constant line, I've tried to create a table visual:
This is my data:
In the diagram below, we find that _Avg line Signups is always 3, which is calculated as 15/5=3. The dependency is on the total of sales rather than the context of the hierarchy currently entered by the arrows.
So that's why when you go to the level of date through the arrow in the top right corner, your constant line doesn't do a recalculation. You can proceed to the next level by right-clicking on the drill down function, and your constant line will be recalculated.
I provide the PBIX file used this time below.
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Jianpeng Li
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! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
21 | |
15 | |
14 | |
11 | |
7 |
User | Count |
---|---|
26 | |
24 | |
12 | |
11 | |
10 |