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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
newtoallthis11
New Member

Annual Completion/Monthly Totals

New to this. Have done some training but seeking the best practice that isnt over complicated.

I have a dataset that contains end dates of specific items. For this instance, i will call them "hockey skates" and they are in a table called "equipment". Each skate component need to be "checked" and "approved" and will only have the date that this has been completed on and who they were completed by.

 

I am looking to have a datacard on a Power Bi that would show the following values when slicers are used:

 

Card 1 - Number of Blades "Checked" in a selected year. So if i have a slicer based on year, if i select 2023, i would get 2. If i selected 2024, i would get 1. I would have multiple cards for the other columns as well (boots Checked, Blades Approved, etc).

 

Chart - I would also like to be able to display in a line chart/bar graph, etc, the number that each inspector has done each month, that would start say in June of 2023 and would keep going as time goes on. To see the progress of work completed by each individual that was selected in a slicer.

 

Is the solution a combination of calculated columns and measures to display. Any guidance would be appreciated.

 

 

Skate S/NInspectorBlade Checked DateBoot Checked DateQC ApproverBlade Approved DateBoot Approved Date
1Tom11/15/202311/28/2023John12/12/202301/15/2024
2Steve10/19/202301/12/2024John02/09/2024

03/15/2024

3Rick01/05/202401/09/2024Dave01/18/2024

06/19/2024

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @newtoallthis11 ,

I expanded your sample data according to your needs:

vjunyantmsft_4-1736214869879.png


And you need to add other two tables for year slicer and X-axis of line chart:

vjunyantmsft_5-1736214909757.png

Use this DAX to create a calculated table:

Calendar = CALENDAR(DATE(2023,6,1), TODAY())

vjunyantmsft_6-1736214950747.png

No relationship between them:

vjunyantmsft_7-1736214968657.png


For your requirement Card 1:
Use these DAXs to create measures:

Blade Checked = 
VAR _year = SELECTEDVALUE(Year_slicer[Year])
RETURN
IF(
    ISFILTERED(Year_slicer[Year]),
    CALCULATE(
        COUNT('Table'[Blade Checked Date]),
        YEAR('Table'[Blade Checked Date]) = _year
    ),
    COUNT('Table'[Blade Checked Date])
)
Boot Checked = 
VAR _year = SELECTEDVALUE(Year_slicer[Year])
RETURN
IF(
    ISFILTERED(Year_slicer[Year]),
    CALCULATE(
        COUNT('Table'[Boot Checked Date]),
        YEAR('Table'[Boot Checked Date]) = _year
    ),
    COUNT('Table'[Boot Checked Date])
)

Output:

vjunyantmsft_8-1736215063664.png

vjunyantmsft_9-1736215072485.png

vjunyantmsft_10-1736215080382.png


For your requirement Chart:
Use this DAX to create a measure:

_count = 
CALCULATE(
    COUNT('Table'[Blade Checked Date]),
    YEAR('Table'[Blade Checked Date]) = YEAR(MAX('Calendar'[Date])) && MONTH('Table'[Blade Checked Date]) = MONTH(MAX('Calendar'[Date]))
)

Output:

vjunyantmsft_11-1736215148263.png

vjunyantmsft_12-1736215156881.png


Please modify DAX to calculate other columns.

Best Regards,
Dino Tao
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

1 REPLY 1
Anonymous
Not applicable

Hi @newtoallthis11 ,

I expanded your sample data according to your needs:

vjunyantmsft_4-1736214869879.png


And you need to add other two tables for year slicer and X-axis of line chart:

vjunyantmsft_5-1736214909757.png

Use this DAX to create a calculated table:

Calendar = CALENDAR(DATE(2023,6,1), TODAY())

vjunyantmsft_6-1736214950747.png

No relationship between them:

vjunyantmsft_7-1736214968657.png


For your requirement Card 1:
Use these DAXs to create measures:

Blade Checked = 
VAR _year = SELECTEDVALUE(Year_slicer[Year])
RETURN
IF(
    ISFILTERED(Year_slicer[Year]),
    CALCULATE(
        COUNT('Table'[Blade Checked Date]),
        YEAR('Table'[Blade Checked Date]) = _year
    ),
    COUNT('Table'[Blade Checked Date])
)
Boot Checked = 
VAR _year = SELECTEDVALUE(Year_slicer[Year])
RETURN
IF(
    ISFILTERED(Year_slicer[Year]),
    CALCULATE(
        COUNT('Table'[Boot Checked Date]),
        YEAR('Table'[Boot Checked Date]) = _year
    ),
    COUNT('Table'[Boot Checked Date])
)

Output:

vjunyantmsft_8-1736215063664.png

vjunyantmsft_9-1736215072485.png

vjunyantmsft_10-1736215080382.png


For your requirement Chart:
Use this DAX to create a measure:

_count = 
CALCULATE(
    COUNT('Table'[Blade Checked Date]),
    YEAR('Table'[Blade Checked Date]) = YEAR(MAX('Calendar'[Date])) && MONTH('Table'[Blade Checked Date]) = MONTH(MAX('Calendar'[Date]))
)

Output:

vjunyantmsft_11-1736215148263.png

vjunyantmsft_12-1736215156881.png


Please modify DAX to calculate other columns.

Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.