Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I have a Date table and a Fact Table. I have a Quarter and Year field in my Date table. I have a Filter on the page for the Quarter. I would like to calculate the total hours form the Fact table for the Year, based on the Quarter selected in the Filter. I try using:
Calulcate(Sum(fact[hours]), Date[Year]), but it always returns the hours for the Quarter? Not sure how to tell it to replace the Quarter filter with the Year, based onthe Quarter selected. Any help would be appreciated! Thanks you.
Solved! Go to Solution.
My Date table has a Quarter field in format 2020Q1, 2020Q2,...
the Year field is the 4-digit year.
I finally figured this out. Maybe htis will help others. Here is what I came up with (Sheet1 is the data set, Dates is my Date Table):
Could really use help. Still unable to make this work. Please. Thanks,
@dBrand What does your data look like? Is your quarter field something like Q12021, Q22021 or just Q1, Q2, etc.?
I finally figured this out. Maybe htis will help others. Here is what I came up with (Sheet1 is the data set, Dates is my Date Table):
My Date table has a Quarter field in format 2020Q1, 2020Q2,...
the Year field is the 4-digit year.
User | Count |
---|---|
124 | |
108 | |
99 | |
62 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |