Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Values = Count_of_user_id
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()
)
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.
Proud to be a Super User! |
|
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 12 | |
| 11 | |
| 10 |