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

View all the Fabric Data Days sessions on demand. View schedule

Reply
JuliCraps
Frequent Visitor

How to determine a status based on others columns and grouping functions

Hello gurus,

I'm face an issue to dermine a status of a row based on others columns and also linked to a calculatation of a global view

For example:

I need to determine the a status of SupplierValid (with value Yes/No)

based on following rules: 

  • The Date DD/MM/YYYY column should be considered if exists in date range corresponding of Current date and last 3 months
  • The ErrorYN column should be Yes (according to the date range)
  • The number of raws respecting the previous rules should be greater or equal to 5

If all 3 rules are achived the status of SupplierValid should be set to Yes

 

Please find enclose an example

DocID SupplierIDDate DD/MM/YYYYErrorYNSupplierValid
1SupA01/01/2022NoYes
2SupB01/01/2022NoNo
3SupC01/01/2022YesYes
4SupB01/01/2022NoNo
5SupB01/02/2022NoNo
6SupB01/03/2022NoNo
7SupB01/04/2022NoNo
8SupB01/05/2022NoNo
9SupB01/06/2022NoNo
10SupD01/10/2022NoNo
11SupA01/10/2022NoYes
12SupA01/11/2022NoYes
13SupC01/11/2022NoYes
14SupD02/11/2022NoNo
15SupA02/11/2022NoYes
16SupC02/11/2022NoYes
17SupD03/11/2022YesNo
18SupA03/11/2022NoYes
19SupC03/11/2022NoYes
20SupD04/11/2022NoNo
21SupA04/11/2022NoYes
22SupC04/11/2022NoYes
23SupE05/11/2022NoNo
24SupD05/11/2022NoNo
25SupE06/11/2022NoNo
26SupE07/11/2022NoNo

 

Thanks lot for your help 🤗

1 REPLY 1
v-jialluo-msft
Community Support
Community Support

Hi @JuliCraps ,

 

Is the [SupplierValid] column the expected result you need?

The results I filtered through several criteria didn't seem to get the expected results

vjialluomsft_0-1668568351899.png

 

vjialluomsft_1-1668568351908.png

 

Please indicate further what you need

 

Best Regards,

Gallen Luo

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.