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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Identify System Approved data point based on client ID

Hi Experts

 

See table below

I am trying to identify all data points in my FACT Table where we have clients that have the same ID and have Status as Authorised and System Apporved, so ID 1 has Status of Authorised and System Apporved in new column add 1 against System Apporved as shown else 0. Likewise ID 23. 

 

IDStatusFlag
1Authorised0
1System Approved1
23Authorised0
23System Approved1
34Authorised0
34Pipeline0
45Rejected0
64Pipeline0
56Pipeline0
1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @Anonymous 
You can created calculated column with the DAX :

Has_Authorised =
IF (
    'Table'[Status] = "System Approved",
    IF (
        COUNTROWS (
            FILTER (
                'Table',
                'Table'[ID] = EARLIER('Table'[ID]) &&
                'Table'[Status] = "Authorised"
            )
        ) > 0,
        1,
        0
    ),
   0
)
Ritaf1983_0-1734090766633.png

PBIX is attached

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Excellent, many thanks

Happy to help🎀

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Ritaf1983
Super User
Super User

Hi @Anonymous 
You can created calculated column with the DAX :

Has_Authorised =
IF (
    'Table'[Status] = "System Approved",
    IF (
        COUNTROWS (
            FILTER (
                'Table',
                'Table'[ID] = EARLIER('Table'[ID]) &&
                'Table'[Status] = "Authorised"
            )
        ) > 0,
        1,
        0
    ),
   0
)
Ritaf1983_0-1734090766633.png

PBIX is attached

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.