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
balu810
Advocate I
Advocate I

show all values in chart

i have a month filter which is filtering the chart with the respective selections , i have an requirments where i need to show all employees irrespective of selection in month and show 0 for them ,,i tried show values with no data but its not working .

 

Note : chart has to filter the employees according to slicer selection , only month selection should return all employees .

 

EMP IDMonthYearManager IDPlanned TimeRecorded Time
1Apr202223528
2Mar202253529
3Jan202223530
4Feb202253525
5Mar202253535

 

balu810_0-1650520745387.png

 values in chart has below caluclated column

 

Missing Time = IF('Table'[Recorded Time]>'Table'[Planned Time], 0 ,'Table'[Planned Time]-'Table'[Recorded Time])
1 ACCEPTED SOLUTION
v-chenwuz-msft
Community Support
Community Support

Hi  @balu810 , 

 

You should create a new table only contains Year and Month, and use these columns to do filter.

Date slicer = crossjoin(VALUES('Table'[Year]),VALUES('Table'[Month]))
Use this expression to calcualte the Missing Time:

Measure =
VAR _c =
    CALCULATE (
        SUM ( 'Table'[Missing Time] ),
        FILTER (
            'Table',
            [Year]
                IN VALUES ( 'Date slicer'[Year] )
                    && [Month] IN VALUES ( 'Date slicer'[Month] )
        )
    )
RETURN
    IF ( ISBLANK ( _c ), 0, _c )

Result:

vchenwuzmsft_1-1650952722338.png

 

Pbix in the end you can refer.
Best Regards

Community Support Team _ chenwu zhu

 

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

2 REPLIES 2
v-chenwuz-msft
Community Support
Community Support

Hi  @balu810 , 

 

You should create a new table only contains Year and Month, and use these columns to do filter.

Date slicer = crossjoin(VALUES('Table'[Year]),VALUES('Table'[Month]))
Use this expression to calcualte the Missing Time:

Measure =
VAR _c =
    CALCULATE (
        SUM ( 'Table'[Missing Time] ),
        FILTER (
            'Table',
            [Year]
                IN VALUES ( 'Date slicer'[Year] )
                    && [Month] IN VALUES ( 'Date slicer'[Month] )
        )
    )
RETURN
    IF ( ISBLANK ( _c ), 0, _c )

Result:

vchenwuzmsft_1-1650952722338.png

 

Pbix in the end you can refer.
Best Regards

Community Support Team _ chenwu zhu

 

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

 

amitchandak
Super User
Super User

@balu810 , try a measure like

m1= sum(Table[Missing Time]) +0

 

or use this option on employee

ShowItemwithoutdata.JPG

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

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.