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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Subham_Ranjan
Frequent Visitor

How to calculate column wise Percentage Change for all month ex - 20-7/20,7-5/7

Subham_Ranjan_0-1738065881856.png

Matrix 
Row = Signup_month
column  = Month No =
DATEDIFF(bull_users[signup_date],bull_users[Purchase_date],Month)-0,1,2,3,4,5,6

Values = Count_of_user_id 

3 REPLIES 3
rohit1991
Super User
Super User

Hi @Subham_Ranjan 
To calculate the column-wise percentage change in a Power BI matrix, you need to compute the difference between the current and previous month's values and then divide by the previous month's value. Here’s how you can create a measure to achieve this:

 

 

Column_Wise_Percentage_Change = 
VAR _CurrentValue = SELECTEDVALUE(bull_users[Count_of_user_id])
VAR _PreviousValue = 
    CALCULATE(
        SELECTEDVALUE(bull_users[Count_of_user_id]), 
        bull_users[Month No] = MAX(bull_users[Month No]) - 1
    )

RETURN 
IF(
    NOT(ISBLANK(_PreviousValue)) && _PreviousValue <> 0,
    (_CurrentValue - _PreviousValue) / _PreviousValue,
    BLANK()
)

 

 


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!
bhanu_gautam
Super User
Super User

@Subham_Ranjan 

Create a Measure for Percentage Change:

Percentage Change =
VAR CurrentMonth = SELECTEDVALUE('Table'[Month No])
VAR PreviousMonth = CurrentMonth - 1
VAR CurrentValue = CALCULATE(SUM('Table'[Count_of_user_id]), 'Table'[Month No] = CurrentMonth)
VAR PreviousValue = CALCULATE(SUM('Table'[Count_of_user_id]), 'Table'[Month No] = PreviousMonth)
RETURN
IF(
ISBLANK(PreviousValue),
BLANK(),
DIVIDE(CurrentValue - PreviousValue, PreviousValue, 0)
)

 

Drag the newly created measure Percentage Change to the Values area of the matrix.

You can format the measure as a percentage by selecting the measure in the Fields pane, then going to the Modeling tab and selecting the percentage format.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






When i am calculating percentage change  of arpu it is not giving accurate result also i am using filter from filter pane where payment status = Success
ARPU = SUM(bull_users[bull_course_orders.Amount])/DISTINCTCOUNT(bull_users[bull_course_orders.user_id])

Percentage_Change =
VAR CurrentMonth = SELECTEDVALUE('users'[Month No])
VAR Previous_Month = CurrentMonth - 1
VAR CurrentValue = CALCULATE([ARPU], 'users'[Month No] = CurrentMonth)
VAR PreviousValue = CALCULATE([ARPU], 'users'[Month No] = Previous_Month)
RETURN
IF(
ISBLANK(PreviousValue),
BLANK(),
DIVIDE(CurrentValue - PreviousValue, PreviousValue)
)

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.