Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
How do i get the calculate sum formula to only display the sum into the currently month instead of all the months as shown? Example 56 should only be shown for current month row (Jan 2024) not all months. Thanks!
write this code :
new column =
var month = month ( today())
var year = year(today() )
var calc =
sumx(
filter (
all ( tbl_name[ values.1] , tbl_name[curernt .. cdc] ) ,
year (tbl_name[ values.1]) = year && month ( tbl_name[ values.1] ) = month
)
var current_row_month = month(tbl_name[ values.1])
var current_row_year = year(tbl_name[ values.1])
return
switch(
true() ,
current_row_month = month && current_row_year = year , calc )
let me know if it works out for you .
If my response has successfully addressed your issue kindly consider marking it as the accepted solution! This will help others find it quickly. I would appreciate hitting that kudos 👍🫡
you can try to create a column
pls see the attachment below
Proud to be a Super User!
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 52 | |
| 45 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 108 | |
| 108 | |
| 39 | |
| 33 | |
| 25 |