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
sarath_chandra
Helper III
Helper III

Dax Help

I have material ,material type (AL,DT,EW) and four region wise(R1,R2,R3,R4) data .Based on region wise user, i have to show the min value of regions.I have to ride the min values for other region users too (for example , region 1 user viewing the report means it should the min value of region 1 alone and should not show the values of other region).Above (first table is my data source )

i need to achieve second one based on region users

 

Material.jpg

 

2 REPLIES 2
Anonymous
Not applicable

Hi @sarath_chandra 

You can refer to the following example

1.Unpivot the table to the following picture

vxinruzhumsft_0-1682044507594.png

 

2.Create a calculated table

Table 2 =
VAR a =
    SUMMARIZE (
        FILTER ( ALLSELECTED ( 'Table' ), [MA] IN VALUES ( 'Table'[MA] ) ),
        [MA],
        [Type]
    )
VAR b =
    SUMMARIZE ( ALLSELECTED ( 'Table' ), [Region] )
RETURN
    ADDCOLUMNS (
        GENERATEALL ( a, b ),
        "minvalue",
            MINX (
                FILTER (
                    ALL ( 'Table' ),
                    [MA] = EARLIER ( 'Table'[MA] )
                        && [Region] = EARLIER ( 'Table'[Region] )
                ),
                [Value]
            )
    )

vxinruzhumsft_1-1682044584682.png

Then create a measure

Measure = SUM('Table 2'[minvalue])

Put the column of table2 and the measure to the matrix visual

vxinruzhumsft_2-1682044637380.png

 

Best Regards!

Yolo Zhu

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

 

sarath_chandra
Helper III
Helper III

please help 🙏@Ibendlin @Ahmedx  @DOLEARY85 @amitchandak 

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.