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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
DineshAgarwal
Frequent Visitor

DAX to populate distinct text with reference to column in matrix row

hello Power BI Team,

 

Please assist with dax to get below result, thanks in advance

DineshAgarwal_0-1720603328634.png

 

2 REPLIES 2
DineshAgarwal
Frequent Visitor

@bhanu_gautam  We have unrelated table which has specific grading for combination as per below

DineshAgarwal_0-1720685078358.png

we need to capture the grading based on concatenate for each row but capturing only for one combination 

DineshAgarwal_2-1720685858305.png

 

Reason is Scorecard Concatenate is populating based on slicer if selected then that value will appear else all 

Below is example for Ind, similar formula is built for GEO, Customer, Branch, CRTY, Division

INDFiltersSelectedInvoicing =
IF (
    ISFILTERED ( 'DWH DIM_CUSTOMER'[CUST_MKT] ),
    CONCATENATEX ( FILTERS ('DWH DIM_CUSTOMER'[CUST_MKT]), 'DWH DIM_CUSTOMER'[CUST_MKT], "; " ),
    "ALL"
)
Scorecard_Concanteate =
var Division = [DivisionFiltersSelectedInvoicing]
var GEO = [RBUFiltersSelectedInvoicing]
var Customer= [CustomerFiltersSelectedInvoicing]
var Ind = [INDFiltersSelectedInvoicing]
 var Branch = [BranchFiltersSelectedInvoicing]
 var CTRY = [CountryFiltersSelectedInvoicing]
 RETURN Division & GEO & CTRY & Customer & Ind & Branch
 Now we want dax query in such a way that Customer is getting selected from Row of Matrix/table instead of slicer and below is dax for Grading which will appear in Matrix, along with other KPIs which coming from Facttable having Many to One relationship with DIM Table
Grading =
CALCULATE(
    SELECTEDVALUE('DWH FACT_O2C_Scorecard_LIVEDATA'[Cash_Health_Score],BLANK()),
    FILTER('DWH FACT_O2C_Scorecard_LIVEDATA','DWH FACT_O2C_Scorecard_LIVEDATA'[Concatenate_1]=[Scorecard_Concanteate])
)


bhanu_gautam
Super User
Super User

@DineshAgarwal , Your Customer table has duplicate values and multiple result, can you specify condition for which what value is required




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.