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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
sokatenaj
Helper III
Helper III

Struggling with a Filter function

Hi Folks,

 

I have a box called "Over Due Reviews" and I use this calculated column and a count of "Over Due" in a data tile:

 

  1. Review Status = IF (TODAY() >= 'Active EEs'[Next Review Date] + 30, "Over Due", "Not Yet Due") 

We consider a review late if it is over 30 days the "Next Review Date" and if that is greater than "today" hence the logic above. However, we have over 20 companies in our organization and some reviews are done based on this logic and some are based on a focal review date where everyone has it on the same date regardless of their start date so this logic above can't be used because none of the reviews would be late and I want it to say "N/A" in that tile instead of showing a number of over due reviews. 

 

So here's my dilemma. I know it is a sort of "FILTER" function and I've tried it so many different ways and I cannot get it to work. 

 

For example, companies A, B, C, D, F, H have the next review date logic, but companies E and G do not. 


I have row-level security enabled so if someone from company G goes into this report I want it to say "N/A" for them and not a value and when someone from company B signs in they see the overdue #. 

 

I'm sure I'm over complicating it. Can someone please help? Many, many thanks. 

1 ACCEPTED SOLUTION
Omega
Impactful Individual
Impactful Individual

I'm not sure about the security part. Regarding the filtering, you can try the following approach: 

 

1) Create a table with two columns: Company name and Logic (Y/N)

2) In column Logic (Y/N), put 1 if the company will use the logic and 0 if the company will not use the logic

3) Create a relationship between the new table and the original using company as a key

4) Update the Review Date Logic formula as below:

 

Review Status = IF (Related (Table 1 [Logic Y/N]) = 1,
IF (TODAY() >= 'Active EEs'[Next Review Date] + 30, "Over Due", "Not Yet Due"),
"N/A"))

 

View solution in original post

3 REPLIES 3
Omega
Impactful Individual
Impactful Individual

I'm not sure about the security part. Regarding the filtering, you can try the following approach: 

 

1) Create a table with two columns: Company name and Logic (Y/N)

2) In column Logic (Y/N), put 1 if the company will use the logic and 0 if the company will not use the logic

3) Create a relationship between the new table and the original using company as a key

4) Update the Review Date Logic formula as below:

 

Review Status = IF (Related (Table 1 [Logic Y/N]) = 1,
IF (TODAY() >= 'Active EEs'[Next Review Date] + 30, "Over Due", "Not Yet Due"),
"N/A"))

 

This worked! Thanks @Omega!!!

Thanks @Omega. I'll try this later tonight to see if it works. Many thanks. 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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