Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hey, not sure if it's easier in DAX or M to do this but looking to create a list of Minutes and Seconds in the below format:
Second | Minute |
1 | 0 |
2 | 0 |
3 | 0 |
4 | 0 |
5 | 0 |
1 | 1 |
2 | 1 |
3 | 1 |
4 | 1 |
5 | 1 |
1 | 2 |
2 | 2 |
3 | 2 |
4 | 2 |
5 | 2 |
Except I want the seconds to run from 1-60 instead of 1-5 and Minutes to run all the way to 90 minutes.
Is there a quick way to do this rather than appending lots of queries together or (gasp) doing it in Excel then copying over?
Thanks,
Rob
Solved! Go to Solution.
V quickly found a solution...
Created a DAX table with GENERATESERIES with the StartValue being any time - TIME(12,00,00) and the EndValue being 1.5 hours after this (to get my 90 mins) and with th increment value being 1 second (TIME(00,00,01)
Then Created a calculated column to get me the minutes, where I chose DATEDIFF from the minimum of the time column (created from the above calc table) and the time column to get me 0-90 mins. Then simply created a "SECOND" column to get me the Seconds from the Time column
V quickly found a solution...
Created a DAX table with GENERATESERIES with the StartValue being any time - TIME(12,00,00) and the EndValue being 1.5 hours after this (to get my 90 mins) and with th increment value being 1 second (TIME(00,00,01)
Then Created a calculated column to get me the minutes, where I chose DATEDIFF from the minimum of the time column (created from the above calc table) and the time column to get me 0-90 mins. Then simply created a "SECOND" column to get me the Seconds from the Time column
@Anonymous,
By the way, you may help accept solution. Your contribution is highly appreciated.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
77 | |
73 | |
58 | |
35 | |
31 |
User | Count |
---|---|
99 | |
57 | |
56 | |
46 | |
40 |