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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
AnitaB
New Member

Visualisation of days left

Hello everyone,

I would like to ask you for help as I cannot do it myself.

Namely, I have created a report in Power Bi in which I have the decisions listed with date and validity. Now I would like to make a visualisation in which would show me which decisions expire in 15,30,45,60,75,90 days. If I click on, for example, box 15, the table will be filtered and all decisions that expire within 15 days will be shown.

What I have done so far:

1) I made a measure that shows me how many days are left until the decision expires

Days left = VAR _today=TODAY()

VAR _validto=MAX('Base'[Valid to)

VAR _dataDIFF= DATEDIFF(_today,_validto,

DAY)

RETURN

IF(_validto>_today,_dataDIFF,0)

2) I have made baskets into which decisions fall if they have a certain number of days

Buckett =

SWITCH ( TRUE(),

   'Base'[Days left] <= 0, "Expired",

   'Base'[Days left] <= 15 , "15",

   'Base'[Days left] <= 30, "30",

   'Base'[Days left] <= 45, "45",

   'Base'[Days left] <= 60, "60",

   'Base'[Days left] <= 75, "75",

   'Base'[Days left] <= 90, "90",

   "Valid"

)

I used treemap visualisation. And the effect looks like this:

AnitaB_0-1701429489223.png

And here I have a problem: I would like the fields to be all permanently visible for 15,30,45,60,75,90 days. Now only 75 and 90 are visible because the other decisions do not expire earlier. And I would like valid and expired to disappear.

 

This is the effect I would like to achieve:

AnitaB_1-1701429489224.png

Could you help me with this, give me some tips on how to do this?

 

2 REPLIES 2
AnitaB
New Member

Hi,

@Anonymous 

 

I have seen these solutions, however, it is not clear to me. I would like to avoid GENERATESERIES, if possible.

As for what I want to achieve, I would like to have a filter that shows me which products expire in 15, 30,45,60,75,90 days. I have already taken some steps, as I wrote above, but I am missing additional checkboxes in the filter.

Currently, if no products expire within 15, 30,45,60 days, the filter is missing, but I would like it to be there, and as a result show for example empty table. Right now I have 4 filtering boxes: 75,90, valid and expired.

Valid is when the product has more than 90 days to expire and does not need to be monitored;

Expired is when the product has expired - no need to monitor it

75 & 90 - these products will expire within this timeframe and need to be monitored.

Below is a link to my problem, perhaps it will better illustrate the issue.

 

https://1drv.ms/u/s!AoWGKfTUBu2UatakgUvnJbfbPiA

Anonymous
Not applicable

Hi @AnitaB ,

I have found  a similar post, please refer to it to see if it helps you.

Solved: Visualisation "Card" doesn't link to the new param... - Microsoft Fabric Community

 

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

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

 

 

 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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
Top Kudoed Authors