Forum Discussion
Bakhtawar
6 years agoPost Patron
variable in formula
hi all first i am going to you what i have in qliksense i create a varaible VPEDate.. in that i do this =if(GetSelectedCount(PE_DATE)>0,Date(Max(GetFieldSelections(PE_DATE))),Date(max(PE_DATE))) ...
Icey
6 years agoCommunity Support
Hi Bakhtawar ,
Sorry to reply late. Please check if the below expression is the first one you want. Several others will take some time.
VPEDate =
IF (
COUNTAX ( Calender, SELECTEDVALUE ( Calender[Date] ) ) > 0,
MAXX (
FILTER (
ALL ( Calender ),
YEAR ( SELECTEDVALUE ( Calender[Date] ) ) = Calender[Year]
&& MONTH ( SELECTEDVALUE ( Calender[Date] ) ) = Calender[Month]
),
Calender[Date]
)
)
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.