Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
M_Potts
Frequent Visitor

How to design an on-going line chart that updates whenever the query is refreshed

I am trying to create a line graph that logs data whenever the user refreshes the query. The purpose is for different units of business (e.g. managers who handle customers in rome verses greece etc) to be able to compare their increasing quality of data. Filtering out business unit is very easy, but actually capturing the backlog of data, saving it then plotting it as the 'previous' point in the graph seems extremely difficult. 

 

For example, if an area manager with the data quality dashboard 'refreshes' the query, he should be able to see today's count of incorrect customers, but any previous values remain plotted on the graph. 

 

Then, after say 12 months, I would want to remove the oldest reading so that the graph doesn't get too long.

 

I have included an image to show the type of thing I want to do - I have just used bad naming and a couple of countries as random examples: 

 

IdealGraph.png

1 REPLY 1
v-shex-msft
Community Support
Community Support

HI @M_Potts,

 

>>For example, if an area manager with the data quality dashboard 'refreshes' the query, he should be able to see today's count of incorrect customers, but any previous values remain plotted on the graph. 

Current power bi not support auto add analysis line to visual graphic when refresh operation.

 

For control x axis startpoint and endpoint, you can manually setting at format tab. 

6.PNG

 

I haven't found any features support to setting line value to zero at specific point, I'd like to suggest you use measure to replace the value column and add condition to replace specific value to 0.

 

Sample:

Measure =
IF (
    DATEDIFF ( TODAY (), MAX ( MAX ( date ), TODAY () ), MONTH ) > 12,
    0,
    SUM ( table[amount] )
)

 

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.