Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all - I've attached a sample pbix file which is where I've started...and ended at the moment. My date is in the table called 'Activity & Demand - TEST FILES FOR APP'. I have a Calendar / Date table (unconnected at the moment).
In my main data, I have essentially two dates I use to measure activity and demand. I measure activity using the field 'AD_Event_DT' and I measure demand using the field 'AD_Request_Date'. I can perform a simple count (as shown in the pbix link in this message) for activity and demand. Produce a graph etc...but what I really need to do is start producing measures which show, for example, the past 12 months activity, the past 12 months demand, then compare against the previous 12 months activity or demand period. The problem I have, is the calendar table needs to recognise that for activity, the min / max dates based on AD_Event_DT will be different to the min / max dates for AD_Request_Date. I only want to use the field AD_Event_DT for activity, and only the AD_Request_Date when measuring demand...!
So, how can I set the calendar / date table up to be able to allow me to compare two periods of time, and all the tricks you guys are so good at for comparing other time intervals, for activity and demand, as per my attached sample data?
I'd really appreciate some practical help with this as I've tried to do this many times, and just can't get it to produce anything near what I need in terms of measures - especially interested in time period to time periods, measures.
These two formulas are what I've tried to use, to produce some time period comparisons - the first (rolling 12) works OK, but the second (Rolling 12 before 12) only shows when nothing is selected - if I try to select a modality (using the AD_Modality) field, I get an error message - something about contiguous date fields...!?
I use AD_Event_Key to count with, and I somehow need the date / calendar table to update with respective dates every time it detects new dates have been added after a data refresh. This is all a bit mind boggling to me.
Many thanks guys.
Link to File: https://drive.google.com/file/d/1MEYWTxmfmLt5QpnCn4g1wG7XwFy4ayzP/view?usp=sharing
Hi @Creative_tree88 ,
I try to use [AD_Modality] to filter your measure. I couldn't reproduce the error in your statement.
Your logic seems to be complex . Could you show me a screenshot with the result you want or the issue you are meeting? This will make me easier to find the solution.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
70 | |
68 | |
43 | |
34 | |
26 |
User | Count |
---|---|
86 | |
49 | |
45 | |
38 | |
37 |