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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
mkatsubl1
New Member

Key Influencers Visual but it doesn't seem to work with Measures

Hi all,

I t
rying to use the Key Influencers Visual but it doesn't seem to work with Measures... I have a measure that SUMs a column depending on a slicer and it doesn't seem to work (always fails) but if I simply add the specific table column it works.. Post if you know anything thanks!

The measures I use is the following:

 

Real] =
SWITCH(SELECTEDVALUE(Metrics[id]),
    1, [Total Sales]
    2, [Total Costs]
    3, [Total Quantity]
)

[Total Sales] = 
CALCULATE(
    SUM(Sales[Total Sales]),
    Sales[Value Type] == "Sales"
)

 

If i simply drag the Sales[Total Sales] Column to the Visual it works... but the measure doesnt
 
 
 
 

 

1 ACCEPTED SOLUTION
ray_ux
Memorable Member
Memorable Member

@mkatsubl1 

 

It works with a switch/slicer and a measure, it would be due to the way it's aggregating, you could probably achieve the same by pulling your primary key into the 'expand by' field.  Additionally, you can see the issue by turning it into a table.

Linear regression wants lots of a data-points in order to do its calculation

View solution in original post

1 REPLY 1
ray_ux
Memorable Member
Memorable Member

@mkatsubl1 

 

It works with a switch/slicer and a measure, it would be due to the way it's aggregating, you could probably achieve the same by pulling your primary key into the 'expand by' field.  Additionally, you can see the issue by turning it into a table.

Linear regression wants lots of a data-points in order to do its calculation

Helpful resources

Announcements
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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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