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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Chitemerere
Responsive Resident
Responsive Resident

Custom Built KPI

I am building simple custom built KPI as follows:

 

Screenshot 2020-05-29 at 12.51.30.png

The visual contains some cards and a column chart.  The custom KPI simply compares Month to Date (MTD) measure versus Same Period Last Month (SPLM).  The MTD in the card above (61 030.47) and the values in the column chart is calculated as follows:

 

Screenshot 2020-05-29 at 13.02.02.png

 

 The chart has 'week of the month' in the x-Axis.  The chart shows the progressive (cumulative) values of the measure until the end of the month.  Instead of showing the progressive (cumulative) values of the measure as the month goes,  How can i show the weekly values instead without being cumulative on the bar chart?

 

Best regards,

Chris

 

 

1 ACCEPTED SOLUTION

I had to use the following instead of [Total Amount Dispense]

 

Screenshot 2020-05-30 at 17.08.53.png

 

Best regards,

Chris

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Chitemerere , use time intelligence with date table

MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))

You can have week column in date table and use them

Refer for week :https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

See if my webinar on Time Intelligence can help: https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-Y...


Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
mahoneypat
Microsoft Employee
Microsoft Employee

Does using the [Total Dispensed Amount] measure by itself get your result?  If not, please clarify your goal.

 

If this works for you, please mark it as solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


I had to use the following instead of [Total Amount Dispense]

 

Screenshot 2020-05-30 at 17.08.53.png

 

Best regards,

Chris

Thank you very much for your prompt response, most appreciated.

 

I am not applying any extra filters outside what is contained in the measure itself as this is a dashboard which in my mind should not have any filters, it just must present the situation as is.  If i use [Total Dispensed Amount], then the value in the chart will be inflated as it will give the total value.  What i want to accomplish is to show values of sales realized during each week of the month until month end.  I hope this is clear.

 

Best regards,

Chris

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors