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

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.

Reply
franorio
Helper III
Helper III

Help with showing count for last month by default

Hi everybody, 

got a report, in which the main columns i use are:.

Status: Completed / Not Completed

Scope: Yes / No

Gente a Cargo: Personal ID if applies.

Month: January 2017 / Febreuary 2017 / March 2017... etc

 

I don´t use a Dim Calendar Table because i don't use specific dates. Just a column for Month & Year.

 

I use the following Measure to calculate which persons got the Leading training completed.

Leading Completed Scope = CALCULATE(
COUNTROWS(leading) ,
FILTER(
'leading',
'leading'[Status]="COMPLETED"
&& leading[Scope]="YES"
&& NOT ISBLANK(leading[Gente a cargo])
)
)

 

As you can see on the below screens, I caluclate Total Scope, If it's completed or not, and the % of completition.

Until a few days ago, I needed the report done this way, to see the YTD. So if i didn't used the above slicer for month (Enero = January, Febrero = february, etc), I was getting the acumulated as i needed.

leading acumulado.PNG

 

In case i would like to see info for certain month, i selected the Month (Abril  = April) and got all numbers i needed for that specific period. Main issue is the method of calculation and interpretation of KPI's changed. So what I need to see is, If i don't select any month on the above slicer, insted of seeing the YTD (acumulated), need to bring by default the last picture or last month that was updated with info. For example if today (July), I don't select anything on the Month Slicer... information for those formulas should bring me by default the numbers as if June (or last month with charged information) would be selected. 

leading abril.PNG

 

 

Thanks in advance!!

 

Regards!!

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@franorio,

 

You may try to use ISFILTERED Function inside the IF Function.

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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