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.
Recurring Bookings = IF( ISFILTERED(Renewal[RENEW FLAG]) &&
SELECTEDVALUE(Renewal[RENEW FLAG]) = "NEW BUSINESS" &&
SELECTEDVALUE(BusinessMix[Bookings by Class]) IN {"License Support", "Hardware Support", "Subscription", "SAAS", "BCS", "Consumption"},
"True",
"False" )
This measure should return True when the following conditions are met: Renewal[RENEW FLAG] is filtered. The selected value of Renewal[RENEW FLAG] is "NEW BUSINESS". The selected value of BusinessMix[Bookings by Class] is all of the specified classes only if anything else is selected or no value is selected then it should return false
Solved! Go to Solution.
Hi @Maithilitiwari ,
your DAX seems perfect , could you plz ellaborate your issue??
I am getting true only when License Support is selected apart from that i am getting false there is a logical error
If you are getting "True" only when "License Support" is selected and "False" otherwise, the issue might be with how the values are being compared or how the SELECTEDVALUE function is operating within the filter context.
Could you please share sample dataset..
or else try this dax
Recurring Bookings =
VAR SelectedRenewFlag = SELECTEDVALUE(Renewal[RENEW FLAG])
VAR SelectedBookingClass = SELECTEDVALUE(BusinessMix[Bookings by Class])
VAR ValidClasses = {"License Support", "Hardware Support", "Subscription", "SAAS", "BCS", "Consumption"}
RETURN
IF(
ISFILTERED(Renewal[RENEW FLAG]) &&
SelectedRenewFlag = "NEW BUSINESS" &&
NOT ISBLANK(SelectedBookingClass) &&
SelectedBookingClass IN ValidClasses,
"True",
"False"
)
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
Where is your issue?
Proud to be a Super User!
I am getting true only when License Support is selected apart from that i am getting false
User | Count |
---|---|
81 | |
74 | |
42 | |
30 | |
28 |
User | Count |
---|---|
108 | |
96 | |
53 | |
48 | |
47 |