Share via

Multiple Dates in same table

Anonymous
2024-10-27T16:19:10.0566667+00:00

How do I structure a dataset when I have a table has both an Activation Date and a Cancelation date (when/if an account is disconnected). How do I tie that to a Date Table that I can create visuals on.

This question is related to the following Learning Module

Community Center | Not monitored
0 comments No comments
{count} votes

Answer accepted by question author
  1. Anonymous
    2024-10-28T07:10:02.8766667+00:00

    Hi Carnabuci, Michael P,

    Thank you for reaching out to us on the Microsoft Q&A forum.

    To analyze both Activation Date and Cancellation Date in a single table, set up the following in Power BI:

    1. Date Table: Ensure a Date table with continuous dates exists, covering both activation and cancellation periods.
    2. Relationships: Create an active relationship between Activation Date and the Date table, and an inactive relationship with Cancellation Date. This allows you to default to activation dates but still access cancellation dates as needed.
    3. DAX Measures: By default, all measures will work based on activation dates. If you need a measure to use cancellation dates instead, apply USERELATIONSHIP in DAX to activate the cancellation date relationship as needed.

    If you found the information helpful, we would greatly appreciate it if you could acknowledge it by selecting the Accept Answer & Upvote options.

    Thank you.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.