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.
Hi All
My Date have 2 different expression :-
Expression 1 :-
Solved! Go to Solution.
Hi @admin11
Just as amitchandak said, that's not available. But you can use measure to select any Calendar table you want, for example,
when you select Date1, then measure will do calculations by using table Date1, and if you select Date2, then the measure will do calculations by using table Date2.
Measure =
var _Date= SELECTEDVALUE(Slicer[Column1])
var _CalculationForDate1= CALCULATE(MAX(DATE1[Date]),ALL(DATE1))
var _CalculationForDate2= CALCULATE(MAX(DATE2[Date]),ALL(DATE2))
return
IF(_Date="Date1",_CalculationForDate1,IF(_Date="Date2",_CalculationForDate2))
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi @admin11
Just as amitchandak said, that's not available. But you can use measure to select any Calendar table you want, for example,
when you select Date1, then measure will do calculations by using table Date1, and if you select Date2, then the measure will do calculations by using table Date2.
Measure =
var _Date= SELECTEDVALUE(Slicer[Column1])
var _CalculationForDate1= CALCULATE(MAX(DATE1[Date]),ALL(DATE1))
var _CalculationForDate2= CALCULATE(MAX(DATE2[Date]),ALL(DATE2))
return
IF(_Date="Date1",_CalculationForDate1,IF(_Date="Date2",_CalculationForDate2))
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
@admin11 , I think you can not. You can add additional flag column
Addcolumns( CALENDAR ( Date(2003,01,01), TODAY() ) , "Flag", if([Date]>= Date(2003,01,01) && [Date]<= date(2021,12,31) , 1,0))
I get error msg below :-
The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.
User | Count |
---|---|
77 | |
76 | |
41 | |
30 | |
24 |
User | Count |
---|---|
97 | |
91 | |
52 | |
47 | |
46 |