Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
FIN_List_Posting_Date_Filter =
VAR DateList = SELECTEDVALUE(My_Report_Date[Report],"Posting Date")
VAR SlicerMIN = MIN(DateTimeTable[DateTime])
VAR SlicerMAX = MAX(DateTimeTable[DateTime])
/*VAR StartDateMIN= IF(NOT(ISFILTERED(My_Report_Date[Report])),[StartDate])
VAR StartDateMAX= IF(NOT(ISFILTERED(My_Report_Date[Report])),[EndDate])*/
VAR
PostedFilter = SWITCH( TRUE(),
DateList ="Posting Date" , IF(ISFILTERED(DateTimeTable[DateTime]),
CALCULATETABLE(
FILTER(Charges,
Charges[POSTED_DT_TM] >= SlicerMIN &&
Charges[POSTED_DT_TM] <= SlicerMAX + TIME(0, 59, 59))),
CALCULATETABLE(
FILTER(Charges,
Charges[POSTED_DT_TM] >= [StartDate] &&
Charges[POSTED_DT_TM] <= [EndDate]+1))))
RETURN PostedFilter
Use a disconnected table for your slicer, and a measure filter for the visual.
User | Count |
---|---|
25 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
30 | |
13 | |
11 | |
9 | |
6 |