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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.