The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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.
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.
Solved! Go to Solution.
@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])
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
@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])
User | Count |
---|---|
64 | |
55 | |
54 | |
51 | |
31 |
User | Count |
---|---|
180 | |
88 | |
70 | |
46 | |
43 |