Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I need help. I have attached a pbix file. in the file, i would like to create the Table[Measure 2] directly in the Sheet1 table without having to create the calculated table "Table". This is becuase i want to be able to slice and dice the data by vintage, Portfolio, etc.
I will really appreciate if someone can help me out. Thanks. pbix file
Solved! Go to Solution.
@TeigeGao Oh! I finally got it! Yay!
try =
AVERAGEX (
CALCULATETABLE (
GROUPBY (
'Sheet1',
'Sheet1'[Loan Life],
'Sheet1'[Vintage],
"Denomi", SUMX ( CURRENTGROUP (), 'Sheet1'[ Denominator Column] )
),
FILTER (
ALLSELECTED ( Sheet1[Loan Life] ),
ISONORAFTER ( Sheet1[Loan Life], MAX ( Sheet1[Loan Life] ), DESC )
)
),
[Denomi]
)
Hi @Anonymous ,
After analysizing your pbix file, my understanding is that you want to average the "Denominator Column" based on the group of "Vintage" and "Loan Life", in this scenario, we can create a measure like below:
Measure = CALCULATE ( AVERAGE ( Sheet1[ Denominator Column] ), FILTER ( ALL ( Sheet1[Vintage], Sheet1[Loan Life] ), Sheet1[Vintage] = MIN ( Sheet1[Vintage] ) && Sheet1[Loan Life] = MIN ( Sheet1[Loan Life] ) ) )
The result will like below:
Best Regards,
Teige
Thanks for responding @TeigeGao . The result should be the values in Measure 2 before filters/slicers are applied
@TeigeGao Oh! I finally got it! Yay!
try =
AVERAGEX (
CALCULATETABLE (
GROUPBY (
'Sheet1',
'Sheet1'[Loan Life],
'Sheet1'[Vintage],
"Denomi", SUMX ( CURRENTGROUP (), 'Sheet1'[ Denominator Column] )
),
FILTER (
ALLSELECTED ( Sheet1[Loan Life] ),
ISONORAFTER ( Sheet1[Loan Life], MAX ( Sheet1[Loan Life] ), DESC )
)
),
[Denomi]
)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
81 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |