Forum Discussion
WCrayger
7 years agoFrequent Visitor
Create Dynamic Summary Table Using Results of Measures
Hello, I'm trying to create a dynamic summary table using the results of measure output. Essentially, I'm trying to create a historgram of sorts. I have 3 measures created, Median, Medan +5%, and...
- 7 years ago
Hi WCrayger ,
Calculated table is same as calculated column, the values can't be dynamically changed by filter. if you'd like to get the dynamic table, I'd suggest you add the measure instead of the column [Subtotal Amount ]:
Firstly, generate the below table:
Test Table = var medianSubtotal = [Median ISP Subtotal] var medianSubtotalMinus5 = [Median ISP Subtotal - 5%] var medianSubtotalPlus5 = [Median ISP Subtotal + 5%] return UNION( SUMMARIZE( 'ISP Invoice ISP Extended Subtotal Amount Calc Table' ,"Median Type", "Median ISP Extended Subtotal" ) ,SUMMARIZE( 'ISP Invoice ISP Extended Subtotal Amount Calc Table' ,"Median Type", "Median ISP Extended Subtotal + 5%" ) ,SUMMARIZE( 'ISP Invoice ISP Extended Subtotal Amount Calc Table' ,"Median Type", "Median ISP Extended Subtotal - 5%" ) )Then add the measure:
Subtotal Amount = SWITCH(MAX([Median Type]),"Median ISP Extended Subtotal",[Median ISP Subtotal],"Median ISP Extended Subtotal + 5%",[Median ISP Subtotal - 5%],"Median ISP Extended Subtotal - 5%",[Median ISP Subtotal - 5%])
v-diye-msft
7 years agoCommunity Support
Hi WCrayger ,
Calculated table is same as calculated column, the values can't be dynamically changed by filter. if you'd like to get the dynamic table, I'd suggest you add the measure instead of the column [Subtotal Amount ]:
Firstly, generate the below table:
Test Table =
var medianSubtotal = [Median ISP Subtotal]
var medianSubtotalMinus5 = [Median ISP Subtotal - 5%]
var medianSubtotalPlus5 = [Median ISP Subtotal + 5%]
return
UNION(
SUMMARIZE(
'ISP Invoice ISP Extended Subtotal Amount Calc Table'
,"Median Type", "Median ISP Extended Subtotal"
)
,SUMMARIZE(
'ISP Invoice ISP Extended Subtotal Amount Calc Table'
,"Median Type", "Median ISP Extended Subtotal + 5%"
)
,SUMMARIZE(
'ISP Invoice ISP Extended Subtotal Amount Calc Table'
,"Median Type", "Median ISP Extended Subtotal - 5%"
)
)
Then add the measure:
Subtotal Amount = SWITCH(MAX([Median Type]),"Median ISP Extended Subtotal",[Median ISP Subtotal],"Median ISP Extended Subtotal + 5%",[Median ISP Subtotal - 5%],"Median ISP Extended Subtotal - 5%",[Median ISP Subtotal - 5%])
WCrayger
7 years agoFrequent Visitor
v-diye-msft, wonderful solution, and works perfectly. I'll be adding this one to my resource list. Thank you for your time, cheers.