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 August 31st. Request your voucher.
I am trying to use a slicer to return the start and end value of a portfolio. I have created measures to pick up the start date and end date selected.
However, I can't pick up only the portfolio value at the end date only.
My first try was
ENDPV = CALCULATE(SUM(Table1[PV]),FILTER(Table1,Table1[Date] == [EndDate]))
Solved! Go to Solution.
@AHoang , if this coming from a date calendar then you can these two var to get first and last date
measure 2 =
VAR _min = MINX( allselected('Calendar') , 'Calendar'[Date] )
VAR _max = MAXX(allselected('Calendar') , 'Calendar'[Date] )
RETURN
<use in calculation >
@AHoang , if this coming from a date calendar then you can these two var to get first and last date
measure 2 =
VAR _min = MINX( allselected('Calendar') , 'Calendar'[Date] )
VAR _max = MAXX(allselected('Calendar') , 'Calendar'[Date] )
RETURN
<use in calculation >
User | Count |
---|---|
11 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
23 | |
14 | |
13 | |
10 | |
8 |