cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nikos_derv
Frequent Visitor

aggregate per category keeping filters, using calculated column or new table

Hello,

 

I have a customer-per-month dataset, and i need to create a calulated column (not measure) where for each customer returns an aggregation of its total turnover. The tricky part here is that i need to have a slicer in my dashboard, where the user selects specific months to be included in this calculation.

 

Please note that it need to be a calculation in column, not a measure, because i need to use this numbers as axis in a scatter chart.

 

I tryed a calculated new table having both ways connection with my primary customer-per-month table, on customer_id . It did returned on customer level the required aggregation, but it partially ignored the slicer, as it was containing total turnover, of the correct month's customers.

 

My code was the following:

 

TOTAL_CUSTOMER_TURNOVER =
SUMMARIZE(
'CUSTOMERS_MONTHLY_ACT'
,CUSTOMERS_MONTHLY_ACT[CUSTOMER_ID]
,"Turnover",sum(CUSTOMERS_MONTHLY_ACT[MONTHLY_TURNOVER])
 
I seems that if i used some kind of filtering in my calculated table it will be wroking fine, but i just can't figure it out.. Can someone help me please?
 
Many thanks in advance!
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@nikos_derv , Only measure can use slicer value, not calculated table/column.

 

You can use dynamic segmentation to get measure on Axis.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1...


Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

Dynamic segmentation -Measure to Dimension conversion: https://youtu.be/gzY40NWJpWQ

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@nikos_derv , Only measure can use slicer value, not calculated table/column.

 

You can use dynamic segmentation to get measure on Axis.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1...


Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

Dynamic segmentation -Measure to Dimension conversion: https://youtu.be/gzY40NWJpWQ

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors