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
AnAnalyst
Helper III
Helper III

Help Needed: KPI to show total from filtered visual. Example file available.

I am trying to have my KPI show the same values as the table on my dashboard. I have filters on the second visual below.

Example Files

 

Pic.PNG

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

An update. I missed one check. Please try this one.

 

KPI =
var t1=SUMMARIZE(
Sheet1,
Sheet1[Project],
Sheet1[Forecast Version],
"Fact vs Plan V",[Fcst vs Plan]
)
var kpiv=SUMX(
FILTER(t1,[Fact vs Plan V]<0),
IF([FY Fcst vs FY Plan]<0,0,[FY Fcst vs FY Plan])
)
return
IF(
ISBLANK(kpiv),
0,
kpiv
)

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

Hi @AnAnalyst ,

Please try this one. I hope this will solve your problem.

 

KPI =
var t1=SUMMARIZE(
Sheet1,
Sheet1[Project],
Sheet1[Forecast Version],
"Fact vs Plan V",[Fcst vs Plan]
)
var kpiv=SUMX(
FILTER(t1,[Fact vs Plan V]<0),
[FY Fcst vs FY Plan]
)
return
IF(
ISBLANK(kpiv),
0,
kpiv
)
Anonymous
Not applicable

An update. I missed one check. Please try this one.

 

KPI =
var t1=SUMMARIZE(
Sheet1,
Sheet1[Project],
Sheet1[Forecast Version],
"Fact vs Plan V",[Fcst vs Plan]
)
var kpiv=SUMX(
FILTER(t1,[Fact vs Plan V]<0),
IF([FY Fcst vs FY Plan]<0,0,[FY Fcst vs FY Plan])
)
return
IF(
ISBLANK(kpiv),
0,
kpiv
)

This is a great solution based on the question I asked. Thank you for the help!

Anonymous
Not applicable

Hi AnAnalyst, 

 

Another possible solution would be to create a mesaure based on the selected projects of the second table.

 

2nd Table KPI = CALCULATE([FY Fcst vs FY Plan],OR(Sheet1[Project]="202",Sheet1[Project]="708"))
 
Since project numbers may change frequently, this may not be the most practical or sustainable solution.
But, if you want to skip the filters, it would work...cap2.PNG
AnAnalyst
Helper III
Helper III

Any tips are much appreacited. 

Up for morning visibility. 

Hi @AnAnalyst ,

 

Working on this... if you need a quick fix apply a visual filter as in the pic. Obviously won't change.

 


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathanielananalyst.PNG

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thanks for taking a look. It seems like this should be easy to do but I havnt had any luck. 

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.