This is dynamic matrix in DAX.
VAR DefaultOfferValue =
SWITCH ( SelectedMeasureVal, "Home1, MAX ( value1 ), "Home2", MAX ( value2 ), "Home3", SUM ( value3 ), " Total99",
sumx (home1 +home2 +home3)....
return
DefaultOfferValue
Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
This is dynamic matrix in DAX.
VAR DefaultOfferValue =
SWITCH ( SelectedMeasureVal, "Home1, MAX ( value1 ), "Home2", MAX ( value2 ), "Home3", SUM ( value3 ), " Total99",
sumx (home1 +home2 +home3)....
return
DefaultOfferValue
@edhans Please see below current situation an excepted results:
This is dynamic matrix in DAX.
VAR DefaultOfferValue =
SWITCH (
SelectedMeasureVal,
"Home1, MAX ( value1 ),
"Home2", MAX ( value2 ),
"Home3", SUM ( value3 ),
" Total99",sumx (home1 +home2 +home3)....
return
DefaultOfferValue
Thanks a lot
@Xiaoxin Sheng I saw in several posting you have all experience in matrix. Could you please take look my issue thanks so much...
Use the filter pane. Let your measure calculate whatever is needed. Then:
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI Reportingthanks @edhans for your help. But my problem also is that I need to sum "total column" that have the same name .
Then provide some data with expected results per links and instructions below. Please try to include ALL requirements in your post so we can attack all of the issues.
How to get good help fast. Help us help you.
How To Ask A Technical Question If you Really Want An Answer
How to Get Your Question Answered Quickly - Give us a good and concise explanation
How to provide sample data in the Power BI Forum - Provide data in a table format per the link, or share an Excel/CSV file via OneDrive, Dropbox, etc.. Provide expected output using a screenshot of Excel or other image. Do not provide a screenshot of the source data. I cannot paste an image into Power BI tables.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingUser | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
12 | |
11 | |
8 | |
6 |