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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Umadhandapani
Helper II
Helper II

Dynamic value changing in Matrix Table with Month Slicer

Need to change the value dynamically based on the month selection in slicer and also color changing.

Eg: Let us consider a matrix table with product against fiscal month with both the values sales and profit.

On month selection in slicer, it should display the sales values till the month selected and remaining month with profit values along with differentiate the color changes between sales and profit and two different totals for both sales and profit.

Umadhandapani_0-1640693550974.png

On selecting "sep" month, the sales value to be shown till september and profit value for remaining along with color differentiation and totals of sales and profits separately.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Umadhandapani , you need to have an independent slicer table for that

 

//Date1 is independent Date table, Date is joined with Table
new measure =
var _max = maxx(allselected(Date1),Date1[Date]) // slicer is on an independent date table

return
if( max('Date'[Date]) <=_max) ,[Sales Measure], [profit measure])

 

View solution in original post

3 REPLIES 3
Umadhandapani
Helper II
Helper II

Whether need to have two date table (Date, Date1

@Umadhandapani , Yes I feel so. Because one you select a date , for same date you can not get trend

 

refer

Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI

 

or

https://www.youtube.com/watch?v=duMSovyosXE

amitchandak
Super User
Super User

@Umadhandapani , you need to have an independent slicer table for that

 

//Date1 is independent Date table, Date is joined with Table
new measure =
var _max = maxx(allselected(Date1),Date1[Date]) // slicer is on an independent date table

return
if( max('Date'[Date]) <=_max) ,[Sales Measure], [profit measure])

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.