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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
DataCube
Regular Visitor

Graph of different values as a function of time

Hi,

 

I'm new to PowerBi.
I'm getting a list of fire extinguishers and their pressure.
fire extinguisher name / pressure value / date
Ext1                                        12               02/10/2018
Ext2                                        10               02/10/2018
Ext3                                        14               02/10/2018
Ext2                                        11               04/10/2018
Ext1                                        16               04/10/2018
Ext3                                        9                 04/10/2018

I would like to display a graph that shows the changes in pressures over time. But I can't find at all how to set up my graph.

4 REPLIES 4
DataCube
Regular Visitor

Hi,

 

I'm new to PowerBi.
I'm getting a list of fire extinguishers and their pressure.
fire extinguisher name / pressure value / date
Ext1                                        12               02/10/2018
Ext2                                        10               02/10/2018
Ext3                                        14               02/10/2018
Ext2                                        11               04/10/2018
Ext1                                        16               04/10/2018
Ext3                                        9                 04/10/2018

I would like to display a graph that shows the changes in pressures over time. But I can't find at all how to set up my graph.

Hello,

 

See , i came up with this solution. you can tweak this solution to compare with average of last few data points etc..... this is just to give me an idea/direction to create something as per your requriement. Hope this helps.

 

Note : i am comparing current value with last data point ( last data point could be yesterday or average of last 2 days etc..).

 

i created a calculated Table taking fields from your example and create 3 measures

Current = today's presure value for each Ext*

Datapoint = All previous value . this is example it will give value for 2nd OCT as there is no other date exists yet.

variance = current -  Datapoint  ( you can also create a seperate mesaure to calculate variance)

TableVariance = ADDCOLUMNS(
                              SUMMARIZE(Ext,
                                        Ext[Prod] )
                  ,"Current",CALCULATE(SUM(Ext[presure]),'Date'[istoday]=0)
                  ,"Data Point",CALCULATE(SUM(Ext[presure]),'Date'[istoday]<0)
                   ,"Variance",  CALCULATE(SUM(Ext[presure]),'Date'[istoday]=0) - CALCULATE(SUM(Ext[presure]),'Date'[istoday]<0)
                 )

 

You also need one Date table. ( link this table with main data table ( Ext in this example)

Date                       istoday

01-OCT-18                 -1

02-OCT-18                 0  (today)

03-OCT-18                

04-OCT-18                

 

istoday =istoday = if('Date'[Date]=today(),0,
          if('Date'[Date]=today()-1,-1,


          if('Date'[Date]=TODAY()-2,-2,-2 )))

 

variance graph.JPG

 

Cheers Bob

PattemManohar
Community Champion
Community Champion

@DataCube Is it something similar you ar looking for...

 

image.pngimage.png





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




I'm looking to make this kind of graph :

graph.png

So I created a "curve graph".
I put: Axis=Created (date), Legend=Name (ext1, ext2,...), Values=Values (pressure).
But I just get a straight line....

I want to see the pressure fluctuation of each extinguisher over time.

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.