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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
bkr
Helper I
Helper I

Highlight significant changes to previous month in matrix visual

Hi, is it possible to highlight changes above e.g. 10% vs. the preceding month in a matrix visual?

The result is expected to look like this:

 JanuaryFebruaryMarchApril
Sales1000010500900010000
variable costs3000315025002700
fixed costs1000100010001150
overhead costs5001200500500
EBIT5500515050005400

 

Thanks!

1 ACCEPTED SOLUTION

Then,  use Sum(Amount)   instead of YOURMEASURE


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

View solution in original post

5 REPLIES 5
bkr
Helper I
Helper I

All numbers are in a single column and I have an attribute column ("line items")

Then,  use Sum(Amount)   instead of YOURMEASURE


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime
bkr
Helper I
Helper I

Thanks, Olga!

yet I don't get it yet. What is [yourmeasure]?  It doesn't seem like calculate accepts a column as first argument.

 

My data has the following columns:

Table Facts:

[Line item]: Sales, variable costs, fixed costs, overhead costs

[Amount]: numbers listed above

[calendar]: Year and month

[EBIT]: is a calculated column

Sum(Amount) is your measure, your numbers ,what you are displaying.

line items, what do you mean, those are the values in a column? or those are separate columns?


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime
olgad
Super User
Super User

Format  Measure =

var PrevMonth=Calculate([YOURMEASURE], DATEADD('Calendar'[Date],-1,MONTH))
RETURN
If(DIVIDE([YOURMEASURE]-PrevMonth, PrevMonth)>0.1, 1,
If(DIVIDE([YOURMEAASURE]-PrevMonth, PrevMonth)<-0.1, 1,
0)
)

DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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