March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi Experts
I posted the following question on Friday just gone https://community.powerbi.com/t5/Desktop/Missing-data-in-time-series-Power-Bi-Desktop/m-p/678557/hig...
The expert that provide that feedback/solution meationed the the solution could also be worked out using a measure, how would this be done.
Solved! Go to Solution.
hi, @Anonymous
Just use this formula to create a dim date table
Dim Date=ADDCOLUMNS(CALENDAR(MIN('Table'[Time]),MAX('Table'[Time])),"1st of month",DATE(YEAR([Date]),MONTH([Date]),1))
or CALENDAR(MIN('Table'[Time]),MAX('Table'[Time])) and then add a 1st of month calculate column
Then create the relationship withDim table by Date column and Time column.
Now when create the visual, use "1st of month" column by the same logic.
Best Regards,
Lin
hi, @Anonymous
You could try this way:
Step1:
Define a dim date table by this formula
Dim Date = FILTER(CALENDAR(MIN('Table'[Time]),MAX('Table'[Time])),DAY([Date])=1)
Step2:
Then create the relationship with data table.
Step3:
Just add a conditional "+0" in measure like below:
Measure = CALCULATE(SUM('Table'[Observations]))+0
Result:
and here is pbix file, please try it.
Best Regards,
Lin
Hi Lin
Firstly thanks for the excellent feedback. I just have one question. in the table with the observations. if i had multiple entries in this table for X sales throughout the month and i wanted to group the sales for the 1st of every month for for the period in question. would this also work and what is the intermediate step i would need to preform.
hi, @Anonymous
Just use this formula to create a dim date table
Dim Date=ADDCOLUMNS(CALENDAR(MIN('Table'[Time]),MAX('Table'[Time])),"1st of month",DATE(YEAR([Date]),MONTH([Date]),1))
or CALENDAR(MIN('Table'[Time]),MAX('Table'[Time])) and then add a 1st of month calculate column
Then create the relationship withDim table by Date column and Time column.
Now when create the visual, use "1st of month" column by the same logic.
Best Regards,
Lin
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |