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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Cfrance28
New Member

Need Help creating measure for maximum sum of a column for a projection

Hello I am trying to create a line graph visual that includes a projection of program enrollment over time (enrollment numbers on y axis, time on x axis).  The project has 10 different sites enrolling patients to participate.  The maximum number of individuals that can be enrolled by site is 130.  I have the graph and I have the projection but I want to add a new measure that will cap each site at 130 so I can get an accurate estimate on timeline to study completion (enrollment= 1300).  The dataset I'm using was designed for another purpose so it is in a less than ideal format but I think it can accomplish what I need.  Below is a sample of the data table

Table Name: Test Tab

Site NameTimepointPatient Enrolled (Cumulative)
Site 1

January 2022

5
Site 2January 20229
Site 3January 20223
Site 1February 202213
Site 2February 202222
Site 3February 20227

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Cfrance28 , Based on what I got,

 

You can have a measure

max enrollment= 130 

 

Use that as line in visual or as constant line using analytics pane -> constant line -> fx

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Cfrance28 , Based on what I got,

 

You can have a measure

max enrollment= 130 

 

Use that as line in visual or as constant line using analytics pane -> constant line -> fx

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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