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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Calculate 1% Decreasing Value of First row against all rows

Hi Guys. I am trapped in a problem and have no idea how to solve it. I want to decrease value of first row against every row i.e. In table below value of januray is decreased by 1% against all other months. i want to create a measure of this.

 

RajaAmad_0-1594111694694.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I have done it but in a lengthy way. i created a new table of months with two columns MonthID and MonthName. Then used switch statement to replicate January data decreased by 1% one by one in all other months.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

I have done it but in a lengthy way. i created a new table of months with two columns MonthID and MonthName. Then used switch statement to replicate January data decreased by 1% one by one in all other months.
amitchandak
Super User
Super User

@Anonymous , either add an index column. Or if you have date . Try like

 

New COlumn =

(datediff([date],min([Date],Month) -1)

 

New COlumn =

[index]- min([index])

Anonymous
Not applicable

After creating this index column how do i use it in my measure?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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