Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi All,
Can i do a measure or calculated column to show every date if from & to are different?
For example: date from 1/03/22, date do 5/03/22 , other values like ID=1, Name=Absence1 etc.
I want show it like:
from 1/03/22 to 1/03/22, other values like ID=1, Name=Absence1 etc.
from 2/03/22 to 2/03/22, other values like ID=1, Name=Absence1 etc.
from 3/03/22 to 3/03/22, other values like ID=1, Name=Absence1 etc.
from 4/03/22 to 4/03/22, other values like ID=1, Name=Absence1 etc.
from 5/03/22 to 5/03/22, other values like ID=1, Name=Absence1 etc.
the table has more values, I would like the same values to be displayed for each date.
Iam geting this from DB in DirectQuery mode.
I have also that value in line, maybe it will be helpfull ?
Solved! Go to Solution.
Hi @Kamill11 ,
If you want to get all dates between the From and To Date, please create a calendar table firstly:
Calendar = CALENDAR(MIN('Table'[From]),MAX('Table'[To]))
And then create a measure to "combine" all dates:
Measure =
var _t= SUMMARIZE(FILTER(ALL('Calendar'[Date]),[Date]>=MAX('Table'[From]) && [Date]<=MAX('Table'[To])),'Calendar'[Date])
return CONCATENATEX(_t,[Date],",")
Output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Kamill11 ,
If you want to get all dates between the From and To Date, please create a calendar table firstly:
Calendar = CALENDAR(MIN('Table'[From]),MAX('Table'[To]))
And then create a measure to "combine" all dates:
Measure =
var _t= SUMMARIZE(FILTER(ALL('Calendar'[Date]),[Date]>=MAX('Table'[From]) && [Date]<=MAX('Table'[To])),'Calendar'[Date])
return CONCATENATEX(_t,[Date],",")
Output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Kamill11 , I doubt the new column will work , You can get comma separated date date like
concatenatex( calendar(Table[Absence from], Table[Absense to]), [Date], " , ")
or
concatenatex( calendar(min(Table[Absence from]), max(Table[Absense to]) ), [Date], " , ")
Expected output is not clear, can you share and explain
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
100 | |
78 | |
75 | |
51 |
User | Count |
---|---|
144 | |
109 | |
108 | |
88 | |
61 |