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
Anonymous
Not applicable

how to make KPI indicator an aggregated number rather than the most recent month?

Hi, 

 

when i tried to use slicer to specify the date range and KPI to show the number change. it always shows the most recent month number rather than sum of them. (whereas when i put these two measures into a card, it is correct)

 

i use this measure for my indicator: 

CALCULATE(COUNTROWS('leads final'), datesbetween('leads final'[modifiedon (bins)], FIRSTDATE('leads final'[modifiedon (bins)]), LASTDATE('leads final'[modifiedon (bins)])))
 
this one for my target (which is same period from the last year, like indicator: Jan-Mar, 2019 and target: Jan-Mar, 2018): 
target = CALCULATE(COUNTROWS('leads final'), datesbetween('leads final'[modifiedon (bins)], FIRSTDATE(DATEADD('leads final'[modifiedon (bins)], -12, MONTH)),LASTDATE(DATEADD('leads final'[modifiedon (bins)], -12, MONTH))))
 
more info: "Modifiedon (bins)" is the slicer.  
 
thank you so much 
1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

I've fixed the measure, please check this one.

https://wicren-my.sharepoint.com/:u:/g/personal/dinaye_wicren_onmicrosoft_com/Eflqd0gqXrBGmvlytj76pV4Beot2yACM5OSFHcaVc3B1cQ?e=DoQLwA

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

View solution in original post

11 REPLIES 11

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.