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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Aku_2800
Frequent Visitor

List of items not available on Previous Day

I have a dataset which shows volumes of devices per day.
NOTE - Every device may not have volume per day.
So, there is a list of unique devices (6). Everyday, the devices run and generate volumes. It could be 0(Zero) too but such devices are not mentioned. Hence, I want a list in matrix/table visual letting client know which devices didn't run(no volumes generated) previous day.

Example :- 
In the below example - I can select whatever date in a slicer and then it should return the devices which generated 0 volume previous day.
In this case if I select 13th May, it will check on 12th.
Unique Devices - A1,B1,C1,D1,E1 and F1
The devices which didn't generate volume previous day (12th May) were - A1,C1,D1,E1 and F1

DateDeviceVolume
13-05-2024B132
13-05-2024A121
13-05-2024C122
12-05-2024B111
1 ACCEPTED SOLUTION
xifeng_L
Super User
Super User

Hi @Aku_2800 ,

 

You can try below measure.

 

xifeng_L_0-1715597806857.png

 

 

no volumes generated devices = 
VAR SelectedDate = SELECTEDVALUE('Calendar'[Date])
RETURN
IF(SelectedDate<>BLANK(),
    CONCATENATEX(
        FILTER(
            ALL('Unique Devices'[Unique Devices]),
            CALCULATE(SUM('Fact'[Volume]),'Calendar'[Date]=SelectedDate-1)=BLANK()
        ),
        'Unique Devices'[Unique Devices],
        " ; "
    ),
    "Pls select the date first!"
)

 

 

Demo - List of items not available on Previous Day.pbix

 

 

Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !

 

Thank you~

 

 

View solution in original post

4 REPLIES 4
xifeng_L
Super User
Super User

Hi @Aku_2800 ,

 

You can try below measure.

 

xifeng_L_0-1715597806857.png

 

 

no volumes generated devices = 
VAR SelectedDate = SELECTEDVALUE('Calendar'[Date])
RETURN
IF(SelectedDate<>BLANK(),
    CONCATENATEX(
        FILTER(
            ALL('Unique Devices'[Unique Devices]),
            CALCULATE(SUM('Fact'[Volume]),'Calendar'[Date]=SelectedDate-1)=BLANK()
        ),
        'Unique Devices'[Unique Devices],
        " ; "
    ),
    "Pls select the date first!"
)

 

 

Demo - List of items not available on Previous Day.pbix

 

 

Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !

 

Thank you~

 

 

Aku_2800
Frequent Visitor

this won't work..

 

PurpleGate
Resolver III
Resolver III

 

 This will show you the previous days value for each device.

Measure name= CALCULATE(SUM('Table'[ColumnVolume]),DATEADD('Date'[Date],-1,DAY))

 Then you can filter on at on that measure, so if it is blank, it returns the device ID

 

Measurefilter = IF(isblank([Measure name]),SELECTEDVALUE('Table'[Device]),BLANK())

 

0 Volume =
VAR _MaxDate =
    MAX ( Table[Date] )
VAR _DevicesAvailable =
    CALCULATETABLE(VALUES ( Table[DeviceName] ),Table[DeviceName]<>BLANK())
VAR _DevicesAvailableOnCurrentDay =
    CALCULATETABLE ( VALUES(Table[DeviceName]),Table, Table[Date] = _MaxDate,Table[DeviceName]<>BLANK())
VAR _DevicesNotAvailable =
    EXCEPT (
        _DevicesAvailable,
        SELECTCOLUMNS ( _DevicesAvailableOnCurrentDay, Table[DeviceName] )
    )
RETURN
    _DevicesNotAvailable


This will just give the devices which are not available on max date (out of all distinct devices). If I do max date - 1. It will check for 1 day before max date but still this is not dynamic. I want this to be dynamic where as I select a date from a slicer in Canvas and it should return the list of values only

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.