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.
Hi @powerbilover123 ,
I created some data:
Here are the steps you can follow:
1. Create calculated table – slicer table.
Table 2 =
CALENDAR(
DATE(2021,1,1),
DATE(2021,2,1))
2. Create measure.
Measure =
var _select=SELECTEDVALUE('Table 2'[Date])
return
SUMX(
FILTER(ALL('Table'),
'Table'[Date]=_select&&'Table'[ID]=MAX('Table'[ID])),DATEDIFF([Start_Date],[End_Date],HOUR))
3. Result:
If it doesn't meet your expected results, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @powerbilover123 ,
I created some data:
Here are the steps you can follow:
1. Create calculated table – slicer table.
Table 2 =
CALENDAR(
DATE(2021,1,1),
DATE(2021,2,1))
2. Create measure.
Measure =
var _select=SELECTEDVALUE('Table 2'[Date])
return
SUMX(
FILTER(ALL('Table'),
'Table'[Date]=_select&&'Table'[ID]=MAX('Table'[ID])),DATEDIFF([Start_Date],[End_Date],HOUR))
3. Result:
If it doesn't meet your expected results, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
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 |
---|---|
79 | |
73 | |
58 | |
36 | |
32 |
User | Count |
---|---|
90 | |
62 | |
61 | |
49 | |
45 |