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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Dynamically display data

HI, 

@Jihwan_Kim 

I have table like this:

 

DateStorage Bin
1/2/2021BIN6
1/4/2021BIN7
2/5/2021BIN10
4/1/2021BIN7
5/8/2021BIN1
 BIN2
 BIN3
 BIN4
 BIN5
 BIN6
 BIN7
 BIN8
 BIN9
 BIN10

 

When in my slicer filter when I select the date range  1/2/2021 to 2/5/2021, it should display all the bins in that range and also with the dates which are blanks,it should display not matching Bins.

 

My output should be:

 

Output:comments
BIN6 
BiN7 
BiIN10 
BIN2This is not matched Bin from the Blank dates
BIN3This is non matched Bin from the Blank dates
BIN4This is non matched Bin from the Blank dates
BIN5This is non matched Bin from the Blank dates
BIN8This is non matched Bin from the Blank dates
BIN9This is non matched Bin from the Blank dates

 

 

 

The Bins which has no date (BIN6 , BIN7 and BIN10, are matched one in our date selection, so we do not want to display it and duplicate. 

 

Any help!

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Picture1.png

 

Comments measure : =
VAR _binlistindaterange =
VALUES ( Data[Storage Bin] )
VAR _allbinlistindatatable =
CALCULATETABLE ( VALUES ( Data[Storage Bin] ), ALL ( Dates[Date] ) )
RETURN
IF (
HASONEVALUE ( BINs[Storage Bin] ),
SWITCH (
TRUE (),
SELECTEDVALUE ( BINs[Storage Bin] ) IN _binlistindaterange, "",
SELECTEDVALUE ( BINs[Storage Bin] ) IN _allbinlistindatatable, BLANK (),
"This is not matched Bin from the Table"
)
)

 

Link to the pbix file 

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

View solution in original post

1 REPLY 1
Jihwan_Kim
Super User
Super User

Picture1.png

 

Comments measure : =
VAR _binlistindaterange =
VALUES ( Data[Storage Bin] )
VAR _allbinlistindatatable =
CALCULATETABLE ( VALUES ( Data[Storage Bin] ), ALL ( Dates[Date] ) )
RETURN
IF (
HASONEVALUE ( BINs[Storage Bin] ),
SWITCH (
TRUE (),
SELECTEDVALUE ( BINs[Storage Bin] ) IN _binlistindaterange, "",
SELECTEDVALUE ( BINs[Storage Bin] ) IN _allbinlistindatatable, BLANK (),
"This is not matched Bin from the Table"
)
)

 

Link to the pbix file 

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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