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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
FaisalImam
Helper I
Helper I

Measure dependent on time

Hi,

 

Is there any way to  perform Measure with a variable that will go on loop for last 6 months ?

 Example :

Measure  formula is : runs/  (value in nth month). 

How will it look in table  or dashboard :

month -6(nov,2021)month-5(dec,2021)month-4(Jan)month-3(Feb)month-2(March)current month(April)
456575859540

 

Here the months will be changing  based on live data and so will the values indifferent month.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @FaisalImam ,

 

If your month values are not in a single column, I'd suggest you firstly go to Power Query Editor and use "Unpivot" to transform data:

Eyelyn9_0-1650617211161.png

Eyelyn9_1-1650617232396.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @FaisalImam ,

 

If your month values are not in a single column, I'd suggest you firstly go to Power Query Editor and use "Unpivot" to transform data:

Eyelyn9_0-1650617211161.png

Eyelyn9_1-1650617232396.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Fowmy
Super User
Super User

@FaisalImam 

Can you share some sample data with the desired output to have a clear understanding of your question?
Mention whether you want a calculated column or measure.
You can either paste your data in the reply box or save it in OneDrive, Google Drive, or any other cloud-sharing platform and share the link here.

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

@Fowmy ,

 

See I will be doing a Measure .

Suppose Measure is : Critical incident in the month/ total incident in the month. Now I need to calculate this and show in the table for the last six months.

We will be extracting data from Snow flake or Service Now for last 6 months and using months in our formula to separate the data on monthly basis.

 

We are going to use live data and hence the months are going to chnge.

 

Example :

For this month :

Table 

MetricsMarch DataFeb Data Jan Data
incident resolution45%36%25%

 

Next Month (May)

MetricsApril dataMarch dataFeb data
incident resolution43%45%36%

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.