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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
DmitryD77
Frequent Visitor

Calculation Groups (?) for discrepancies report

Hello community,

 

Please help, I need to create a data quality report. One of the steps is to create a discrepancy page:

DmitryD77_0-1721738996347.png

When slicer is selected from the above, table must only display mismatches based on the measure: Measure X SX vs SX = FALSE.

 

The "New Visual Slicer" also requires conditional formatting (Format/Buttons/Fill) based on the "Measure X SX vs SX" results. If "Measure X SX vs SX" = FALSE, color = "red", TRUE, color = "green".

Also, the number of measures in DIFF folder in the real dataset is more than 40, so if by using "calculation groups" the number can be reduced, it will be perfect.

Link to the file.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @DmitryD77 ,

 

You can put these fields in a table to determine if they are equal.

vkaiyuemsft_0-1721809595828.png

Create measure.

MEASURE = 

VAR _cur =

    MAX ( 'Indicators (Group)'[Indicators (Group)] )

VAR _color =

    SWITCH (

        TRUE (),

        _cur = "Measure 1 S1 vs S2", 'Calculations'[Measure 1 S1 vs S2],

        _cur = "Measure 1 S1 vs S3", 'Calculations'[Measure 1 S1 vs S3],

        _cur = "Measure 2 S1 vs S2", 'Calculations'[Measure 2 S1 vs S2],

        _cur = "Measure 2 S1 vs S3", 'Calculations'[Measure 2 S1 vs S3],

        FALSE ()

    )

RETURN

    IF ( _color = FALSE (), 0, 1 )
 

You can create rules for the selected state of a button to show different colours.

vkaiyuemsft_1-1721809605992.png

vkaiyuemsft_0-1721812137826.pngvkaiyuemsft_1-1721812153241.png

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

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

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @DmitryD77 ,

 

You can put these fields in a table to determine if they are equal.

vkaiyuemsft_0-1721809595828.png

Create measure.

MEASURE = 

VAR _cur =

    MAX ( 'Indicators (Group)'[Indicators (Group)] )

VAR _color =

    SWITCH (

        TRUE (),

        _cur = "Measure 1 S1 vs S2", 'Calculations'[Measure 1 S1 vs S2],

        _cur = "Measure 1 S1 vs S3", 'Calculations'[Measure 1 S1 vs S3],

        _cur = "Measure 2 S1 vs S2", 'Calculations'[Measure 2 S1 vs S2],

        _cur = "Measure 2 S1 vs S3", 'Calculations'[Measure 2 S1 vs S3],

        FALSE ()

    )

RETURN

    IF ( _color = FALSE (), 0, 1 )
 

You can create rules for the selected state of a button to show different colours.

vkaiyuemsft_1-1721809605992.png

vkaiyuemsft_0-1721812137826.pngvkaiyuemsft_1-1721812153241.png

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

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

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.