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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
aboileau
Frequent Visitor

How to add a constant target across time - Matrix

Hi All!

 

I'm trying to make a target row in my matrix to track exams relative to this target that is constant throughout time.

I made a table where the constants are located.

aboileau_0-1697659784370.png

I want them to reside where it says exam shifts by location. There is no time on this table as I want it constant throughout time.

aboileau_1-1697659890931.png

 

1 ACCEPTED SOLUTION
Abhinav054
Helper I
Helper I

Ok, then create a Constant Measure 

Constant = VAR LocationName = MAX(Table1[Location Name])
RETURN Table2[Target]

View solution in original post

4 REPLIES 4
Abhinav054
Helper I
Helper I

Ok, then create a Constant Measure 

Constant = VAR LocationName = MAX(Table1[Location Name])
RETURN Table2[Target]

Amazing Thank you so much!!!

 

Abhinav054
Helper I
Helper I

hii, once try this

  1. Create a new row in your matrix and label it "Target."
  2. In the "Target" row, enter the constant value that you want to use to track exams relative to.
  3. To calculate the relative difference between the actual number of exams and the target, use the following formula:

    Relative difference = (Actual number of exams - Target) / Target

  1. Enter the relative difference values into the "Exam Shifts" column for each location.

Hi! Thank you.

So what I'm looking for in the first table is my constants (1 target for each location that holds true across weeks) as I have multiple locations and multiple targets. That table is connected via my Location Name.

I'm trying to get a measure that has the constant appear each week across all weeks given there is no date on that table. 

Helpful resources

Announcements
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.