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.
Solved! Go to Solution.
I am hoping you have a timestamp column. Or the date and time stamp column. Based on that have these two columns
Bucket Date = if(hour([Timestamp])<=1, [Timestamp].date-1, [Timestamp].date)
Bucket = switch(true(),
hour([Timestamp])<=1 || hour([Timestamp])>=18 , "6PM to 1AM",
/// Othe bucket logic
)
Can you provide some sample data and expected output? Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Thanks for the replies.
Model is simple date and time table connected to sales facts and and another shift fact table:
I guess I am looking for a modelling approach that will let me filter a report page to be 6am to 1am and allow me to use these times on the axis of a line chart:
Cheers
Right @tenfingers but I am looking to not have to type a bunch of data that may or may not be representative of your actual data formats in order to test out a solution.
Thanks Greg,
I am using a date table with the datekey column connecting to my fact tables:
This is my Time Table where time_id connects to the fact table:
This is my sales fact with the timeid that connects the time table:
Here is the rest of sales fact table with date id that connects the date table:
I have a measure that sums sales from the sales fact table and would like to plot this on a line chart with hours 6am to 1am on the X axis. I would also like to be able to filter report pages to this range. Let me know if you need any more details.
Thanks in advance.
Glad you found a solution @tenfingers . Nothing to be embarrassed about. Sometimes stepping away from the problem for a bit and approaching it again with a fresh set of eyes is the way to go!
I am hoping you have a timestamp column. Or the date and time stamp column. Based on that have these two columns
Bucket Date = if(hour([Timestamp])<=1, [Timestamp].date-1, [Timestamp].date)
Bucket = switch(true(),
hour([Timestamp])<=1 || hour([Timestamp])>=18 , "6PM to 1AM",
/// Othe bucket logic
)
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 |
---|---|
109 | |
100 | |
74 | |
63 | |
62 |
User | Count |
---|---|
143 | |
104 | |
103 | |
82 | |
66 |