%3CLINGO-SUB%20id%3D%22lingo-sub-1332312%22%20slang%3D%22en-US%22%3ECombine%20Azure%20Synapse%20and%20Power%20BI%20RLS%20to%20Analyze%20Aggregated%20Data%20while%20Controlling%20Granular%20PII%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1332312%22%20slang%3D%22en-US%22%3E%3CP%3ELet%E2%80%99s%20start%20this%20article%20off%20with%20a%20simple%20summary%20of%20the%20use%20case%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EYou%E2%80%99ve%20been%20tasked%20with%20creating%20an%20analytics%20solution%20based%20on%20large%20volumes%20of%20data%20containing%20PII%20(Personally%20Identifiable%20Information)%3C%2FLI%3E%0A%3CLI%3EEnd%20users%20will%20need%20to%20see%20%3CEM%3ESummary%20Level%20Data%20for%20their%20Department%3C%2FEM%3E%2C%20and%20also%20Drill%20to%3CEM%3E%20Detail%20Level%20Data%3C%2FEM%3E%20containing%20PII.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EHere%E2%80%99s%20the%20catch!%3C%2FSTRONG%3E%26nbsp%3BUsers%20can%20only%20view%20Detail%20Level%20Data%20containing%20PII%20for%20a%3CEM%3E%20subset%20of%20the%20Department%20cohort%3C%2FEM%3E!%20For%20example%20a%20Physician%20can%20view%20reports%20and%20do%20interactive%20analysis%20of%20aggregated%20data%20for%20%3CEM%3Eevery%20patient%20in%20their%20entire%20Department%3C%2FEM%3E%2C%20but%20they%20are%20only%20allowed%20to%20see%20%3CEM%3Edetails%20containing%20PII%20for%20their%20own%20patients%3C%2FEM%3E.%3C%2FLI%3E%0A%3CLI%3EYou%E2%80%99d%20like%20to%20deliver%20an%20easy-to-use%20and%20highly%20performant%20solution%20that%20has%20a%20simple%2C%20cohesive%2C%20and%20elegant%20design.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EConsider%20the%20diagram%20below.%20A%20User%20can%20see%20aggregated%20data%20for%20%3CEM%3Eall%20Specialties%3C%2FEM%3E%2C%20but%20only%20%3CEM%3Etwo%20States%3C%2FEM%3E.%20When%20the%20User%20drills%20to%20detail%2C%20they%20can%20only%20see%20detail%20data%20containing%20PII%20for%20%3CEM%3Eone%20State%3C%2FEM%3E%20and%20%3CEM%3Eone%20Specialty%3C%2FEM%3E%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22DrillDetail.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F186135i66FDC1C79FEBF32A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22DrillDetail.png%22%20alt%3D%22Control%20Access%20to%20Detail%20Level%20PII%20without%20Compromising%20Analytics%20for%20Aggregated%20Data%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EControl%20Access%20to%20Detail%20Level%20PII%20without%20Compromising%20Analytics%20for%20Aggregated%20Data%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ETraditional%20Row%20Level%20Security%20(RLS)%20can%20be%20used%20to%20prevent%20users%20from%20viewing%20data%20they%20are%20not%20supposed%20to%20see%2C%20but%20it%20also%20prevents%20them%20from%20viewing%20aggregated%20metrics%20of%20the%20rows%20obfuscated%20by%20RLS.%20Also%2C%20even%20when%20PII%20has%20been%20scrubbed%20from%20data%2C%20re-identification%20can%20still%20be%20an%20issue.%20For%20example%2C%20there%20may%20be%20only%20one%20person%20in%20a%20zip%20code%20with%20a%20rare%20medical%20condition.%20Even%20though%20their%20PII%20has%20been%20scrubbed%20from%20a%20reporting%20data%20set%2C%20showing%20data%20for%20that%20zip%20code%20and%20medical%20condition%20could%20lead%20to%20re-identification%20of%20the%20person.%20It%20is%20often%20a%20best%20practice%20to%20set%20the%20grain%20of%20de-identified%20data%20at%20a%20count%20of%20persons%20that%20reduces%20or%20eliminates%20this%20risk.%20Implementing%20this%20concept%20into%20Power%20BI%20Aggregation%20Tables%20or%20Azure%20Synapse%20Materialized%20Views%20can%20prevent%20queries%20from%20yielding%20granular%20data%20below%20a%20certain%20patient%20count.%20In%20the%20example%20below%2C%20that%20minimum%20is%208%20patients%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Aggregate%20Grain.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F186140iE436D36A6EE4CAEA%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Aggregate%20Grain.png%22%20alt%3D%22Reduce%20the%20risk%20of%20Re-Identification%20by%20Aggregating%20Counts%20of%20Patients%20in%20the%20Table%20Grain%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EReduce%20the%20risk%20of%20Re-Identification%20by%20Aggregating%20Counts%20of%20Patients%20in%20the%20Table%20Grain%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIn%20the%20example%20above%2C%20the%20Aggregation%20Table%20(left)%20can%20be%20set%20to%20have%20different%20RLS%20than%20the%20Detail%20Table%20(right).%20If%20the%20Aggregation%20is%20cached%20in%20Power%20BI%20as%20an%20Import%20table%2C%20and%20the%20Detail%20Table%20is%20in%20Azure%20Synapse%2C%20then%20drilling%20to%20details%20which%20are%20different%20from%20the%20aggregates%20can%20be%20achieved%20such%20as%20in%20the%20example%20below%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22RLS%20Queries.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F186164i9BA4C71956829C4B%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22RLS%20Queries.png%22%20alt%3D%22Allow%20Analytics%20of%20Aggregated%20Data%20while%20still%20controlling%20Access%20to%20Detail-Level%20PII%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EAllow%20Analytics%20of%20Aggregated%20Data%20while%20still%20controlling%20Access%20to%20Detail-Level%20PII%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhen%20using%20Azure%20Synapse%20Analytics%20with%20Power%20BI%2C%20you%20can%20apply%20RLS%20to%20any%20of%20the%20three%20basic%20types%20of%20data%20tables%3A%201)%20%3CSTRONG%3EPower%20BI%20Import%20tables%3C%2FSTRONG%3E%20for%20ease-of-use%20and%20highly%20efficient%20query%20performance%20from%20an%20optimized%20cache%20of%20data%2C%202)%20%3CSTRONG%3EAzure%20Synapse%20Materialized%20Views%3C%2FSTRONG%3E%20for%20MPP%20performance%20using%20efficient%20queries%2C%20and%203)%20%3CSTRONG%3EAzure%20Synapse%20Tables%3C%2FSTRONG%3E%20for%20limitless%20scale.%20The%20diagram%20below%20shows%20these%20three%20options%20that%20you%20can%20mix-and-match%20in%20a%20Composite%20Model%20and%20even%20layer%20them%20as%20Power%20BI%20Aggregations%3A%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Data%20Layers.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F186151i77C3EE0E7D8D7E68%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Data%20Layers.png%22%20alt%3D%22Power%20BI%20Composite%20Models%20offer%20Different%20Options%20for%20Persisting%20Data%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EPower%20BI%20Composite%20Models%20offer%20Different%20Options%20for%20Persisting%20Data%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EUsing%20a%20methodology%20of%20controlling%20access%20to%20Detail%20level%20data%20differently%20from%20Aggregated%20data%20can%20be%20used%20in%20many%20different%2C%20flexible%20and%20useful%20ways.%20Addressing%20concerns%20with%20protecting%20PII%20is%20a%20common%20use%20case.%20There%20are%20a%20few%20considerations%20that%20should%20be%20evaluated%20and%20rigorously%20tested%20if%20considering%20this%20type%20of%20architecture%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EImplementing%20RLS%20has%20performance%20implications%20in%20both%20Power%20BI%20and%20Azure%20Synapse.%20Every%20time%20a%20query%20uses%20RLS%2C%20an%20additional%20layer%20of%20complexity%20is%20added.%20The%20RLS%20design%2C%20Power%20BI%20Model%20sizing%2C%20and%20Azure%20Synapse%20Analytics%20sizing%20all%20need%20to%20be%20evaluated.%3C%2FLI%3E%0A%3CLI%3ERLS%20architecture%20should%20be%20designed%20to%20require%20minimal%20compute%2C%20and%20also%20rigorously%20tested%20before%20the%20Azure%20Synapse%20and%20Power%20BI%20Data%20Model%20designs%20are%20finalized.%3C%2FLI%3E%0A%3CLI%3EAn%20efficient%20and%20effective%20RLS%20design%20will%20minimize%20the%20chances%20of%20future%20re-work%2C%20reduce%20compute%20overhead%20for%20processing%20queries%2C%20and%20potentially%20reduce%20costs%20due%20to%20optimized%20query%20performance%20and%20storage%20requirements.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EThis%20article%20is%20the%20fourth%20in%20a%20series%20exploring%20how%20Power%20BI%20paired%20with%20Azure%20data%20tools%20creates%20a%20flexible%2C%20scale-able%2C%20and%20achievable%20healthcare%20analytics%20architecture%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%231%20-%20Unleash%20Massive%20Healthcare%20Data%20Volumes%20to%20Analytics%20using%20Power%20BI%20Aggregations%20-%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20title%3D%22Unleash%20Massive%20Healthcare%20Data%20Volumes%20to%20Analytics%20using%20Power%20BI%20Aggregations%22%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fhealthcare-and-life-sciences%2Funleash-massive-healthcare-data-volumes-to-analytics-using-power%2Fba-p%2F882990%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3EClick%20Here!%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%232%20-%20Control%20PII%20and%20Sensitive%20Data%20Risk%20for%20Self-Service%20BI%20using%20Power%20BI%20DataFlows%20and%20Azure%20Data%20Lake%20-%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20title%3D%22Control%20PII%20and%20Sensitive%20Data%20Risk%20for%20Self-Service%20BI%20using%20Power%20BI%20DataFlows%20and%20Azure%20Data%20Lake%22%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fhealthcare-and-life-sciences%2Fcontrol-pii-and-sensitive-data-risk-for-self-service-bi-using%2Fba-p%2F1018486%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3EClick%20Here!%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%233%20-%20Microsoft%20Azure%20Information%20Protection%20Secures%20Power%20BI%20Data%20Exports%20for%20a%20Seamless%20DLP%20Strategy%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fhealthcare-and-life-sciences%2Fmicrosoft-azure-information-protection-secures-power-bi-data%2Fba-p%2F1189969%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3EClick%20Here!%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%234%20-%20Combine%20Azure%20Synapse%20and%20Power%20BI%20RLS%20to%20Analyze%20Aggregated%20Data%20while%20Controlling%20Granular%20PII%20(This%20Article)%3C%2FLI%3E%0A%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1332312%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22RLS%20Queries.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F186163i8134F58B3420B361%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22RLS%20Queries.png%22%20alt%3D%22RLS%20Queries.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWith%20Azure%20Synapse%20Analytics%20and%20Power%20BI%2C%20individual%20user%20access%20to%20PII%20Detail%20Data%20can%20be%20controlled%20while%20still%20Enabling%20Analytics%20over%20large-scale%20aggregations%20of%20de-identified%20data%20in%20the%20same%20solution.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1332312%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Ehealthcare%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1535226%22%20slang%3D%22en-US%22%3ERe%3A%20Combine%20Azure%20Synapse%20and%20Power%20BI%20RLS%20to%20Analyze%20Aggregated%20Data%20while%20Controlling%20Granular%20PII%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1535226%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20thankful%20to%20Exam4Lead%20for%20assisting%20me%20during%20my%20preparation%20and%20I%20cannot%20forget%20the%20king%20disposition%20of%20experts.%20The%20wording%20of%20questions%20and%20answers%20was%20so%20simple%20and%20captivating%20in%20Microsoft%20DA-100.%20There%20was%20nothing%20confusing%20in%20this%20handy%20study%20stuff.%20I%20will%20strongly%20suggest%20to%20all%20IT%20candidates%20of%20this%20certification%20to%20use%20Microsoft%20DA-100.%20%3CA%20href%3D%22https%3A%2F%2Fwww.exam4lead.com%2Fmicrosoft%2Fda-100-dumps.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.exam4lead.com%2Fmicrosoft%2Fda-100-dumps.html%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1661225%22%20slang%3D%22en-US%22%3ERe%3A%20Combine%20Azure%20Synapse%20and%20Power%20BI%20RLS%20to%20Analyze%20Aggregated%20Data%20while%20Controlling%20Granular%20PII%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1661225%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20is%20fantastic%20info.%20Thanks%20for%20posting%20Greg.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

Let’s start this article off with a simple summary of the use case:

  • You’ve been tasked with creating an analytics solution based on large volumes of data containing PII (Personally Identifiable Information)
  • End users will need to see Summary Level Data for their Department, and also Drill to Detail Level Data containing PII.
  • Here’s the catch! Users can only view Detail Level Data containing PII for a subset of the Department cohort! For example a Physician can view reports and do interactive analysis of aggregated data for every patient in their entire Department, but they are only allowed to see details containing PII for their own patients.
  • You’d like to deliver an easy-to-use and highly performant solution that has a simple, cohesive, and elegant design.

Consider the diagram below. A User can see aggregated data for all Specialties, but only two States. When the User drills to detail, they can only see detail data containing PII for one State and one Specialty:

Control Access to Detail Level PII without Compromising Analytics for Aggregated DataControl Access to Detail Level PII without Compromising Analytics for Aggregated Data

Traditional Row Level Security (RLS) can be used to prevent users from viewing data they are not supposed to see, but it also prevents them from viewing aggregated metrics of the rows obfuscated by RLS. Also, even when PII has been scrubbed from data, re-identification can still be an issue. For example, there may be only one person in a zip code with a rare medical condition. Even though their PII has been scrubbed from a reporting data set, showing data for that zip code and medical condition could lead to re-identification of the person. It is often a best practice to set the grain of de-identified data at a count of persons that reduces or eliminates this risk. Implementing this concept into Power BI Aggregation Tables or Azure Synapse Materialized Views can prevent queries from yielding granular data below a certain patient count. In the example below, that minimum is 8 patients:

Reduce the risk of Re-Identification by Aggregating Counts of Patients in the Table GrainReduce the risk of Re-Identification by Aggregating Counts of Patients in the Table Grain

In the example above, the Aggregation Table (left) can be set to have different RLS than the Detail Table (right). If the Aggregation is cached in Power BI as an Import table, and the Detail Table is in Azure Synapse, then drilling to details which are different from the aggregates can be achieved such as in the example below:

Allow Analytics of Aggregated Data while still controlling Access to Detail-Level PIIAllow Analytics of Aggregated Data while still controlling Access to Detail-Level PII

 

When using Azure Synapse Analytics with Power BI, you can apply RLS to any of the three basic types of data tables: 1) Power BI Import tables for ease-of-use and highly efficient query performance from an optimized cache of data, 2) Azure Synapse Materialized Views for MPP performance using efficient queries, and 3) Azure Synapse Tables for limitless scale. The diagram below shows these three options that you can mix-and-match in a Composite Model and even layer them as Power BI Aggregations: 

Power BI Composite Models offer Different Options for Persisting DataPower BI Composite Models offer Different Options for Persisting Data

Using a methodology of controlling access to Detail level data differently from Aggregated data can be used in many different, flexible and useful ways. Addressing concerns with protecting PII is a common use case. There are a few considerations that should be evaluated and rigorously tested if considering this type of architecture:

  • Implementing RLS has performance implications in both Power BI and Azure Synapse. Every time a query uses RLS, an additional layer of complexity is added. The RLS design, Power BI Model sizing, and Azure Synapse Analytics sizing all need to be evaluated.
  • RLS architecture should be designed to require minimal compute, and also rigorously tested before the Azure Synapse and Power BI Data Model designs are finalized.
  • An efficient and effective RLS design will minimize the chances of future re-work, reduce compute overhead for processing queries, and potentially reduce costs due to optimized query performance and storage requirements.

This article is the fourth in a series exploring how Power BI paired with Azure data tools creates a flexible, scale-able, and achievable healthcare analytics architecture:

  • #1 - Unleash Massive Healthcare Data Volumes to Analytics using Power BI Aggregations - Click Here!
  • #2 - Control PII and Sensitive Data Risk for Self-Service BI using Power BI DataFlows and Azure Data Lake - Click Here!
  • #3 - Microsoft Azure Information Protection Secures Power BI Data Exports for a Seamless DLP Strategy Click Here!
  • #4 - Combine Azure Synapse and Power BI RLS to Analyze Aggregated Data while Controlling Granular PII (This Article)
1 Comment
Occasional Visitor

This is fantastic info. Thanks for posting Greg.