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
Surajb
Frequent Visitor

Help needed to refresh a table after a slicer is selected

Hey All,

 

This is my first message and might miss something. Please correct me if I missed any information to provide.

I am trying to run a report where in I need to find a product that is in progress based on the time slicer that I select.

For example, please refer the following table:

 

Product_idStatus    StatusDatetime
1Draft     1-Jun-19
1InProgress2-Jun-19
1Approved  30-Jun-19
2Draft     2-Jun-19
2InProgress2-Jun-19
2Approved  3-Jun-19

 

Based on the time slicer selected (which is a datetime column), I need to check if the product was in progress status, i.e. I need to check the last status for each product in the given date range and show if it was in progress.

 

If I select a date slicer from 01-Jun-2019 to 02-jun-2019 I should get

----------------------------------------------------------------------
1 InProgress
2 InProgress


If I select a date slicer from 03-Jun-2019 to 30-jun-2019 I should get
----------------------------------------------------------------------
1 InProgress

 

If I select a date slicer from 01-Jun-2019 to 03-jun-2019 I should get
----------------------------------------------------------------------
1 InProgress


----------------------------------------------------------------------
If I select a date slicer from 01-Jun-2019 to 30-jun-2019 I should get

0 records

 

I read in the community posts that a calculated measure/calculated tables help solve similar problem, but this case is slightly different. Every time a time slicer is selected, the last status of a product in that date range can change. Basically all I can think of is having a table which gets calculated everytime a slicer is selected which I think is not support by power BI as of now. Any help help would be highly appreciated 🙂

5 REPLIES 5
Surajb
Frequent Visitor

Hi All, I have the following data : 

 

Created By

Product_idStatus    StatusDatetime
Suk10New1-Jun-19
Suk10InProgress2-Jun-19
Suk10Approved  30-Jun-19
Suk11New2-Jun-19
Suk11InProgress2-Jun-19
Suk11Approved  3-Jun-19
Suk13New2-Jun-19
Min15New8-Jun-19
Min16New11-jun-19
Min16InProgress12-Jun-19
Min16Approved13-Jun-19
Min1New01-May-19

 

I need the following Matrix table which gives me count of product aggregated by created BY and their counts for New , Approved an in Progress Products.

 

Created

By

NewIn ProgressApproved
Suk312
Min211

 

Date Slicer  : 01-Jun-2019 to 30-Jun-2019

In this matrix New and Approved can be found in the slicer but in Progress may or may not be available in the slicer.

What I am trying to achive is in a given time Slice, we want to know how many products were created, how many were in progress and how many got approved.

 

If a product got created before the time slice, and is still not approved in the time slice, then we need to show it as in progress.

In the above sample, Suk had one in progress as one product Product_id = 13 was in progress as it was created on 2nd Jun 2019  and was not approved in the time slice

 

Min had one InProgress as one product Product_id = 1 was created on 1st May-2019 and was not approved. Note that this record wont be available in the time slicer ..But I need to count this as well.

 

Please let me know if this can be achieved. New and approved count are actions done on the product during the time slice and in Progress is the final status of the product.

 

Please help !

Thanks in advance.

 

 

 

 

 

Surajb
Frequent Visitor

Until now I didnt find a solution for this. If anyone have come across such situation please do comment.

 

Thanks 

v-xuding-msft
Community Support
Community Support

Hi @Surajb ,

I created a measure you can have a try.

Measure = var a = CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[Status    ] = "InProgress"))
var b = CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[Status    ] = "Approved"))
return
IF(ISBLANK(b) && NOT(ISBLANK(a)),"InProgress",BLANK())

1.PNG2.PNG

Best Regards,

Xue Ding

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

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

Hi @v-xuding-msft ,

 

This does help but is it possible to filter this record compeltely instead of setting it as blank ? I have a matrix which refers this table and I would like to filter those records from the table which is currently set to blank.

 

Once again thanks for your kind inputs. 

Surajb
Frequent Visitor

No one ? Its kind of urgent 😞 😞  I really need help on this. Any help would be highly appreciated!

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

Top Solution Authors