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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.