Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Dear community,
I have a question which I think should be easy to solve, but I simply can't think of / find a smart solution so far.
I have the following dataset:
Subject | Planned date | Date ready |
Document 1 | 1-2-2020 | 1-2-2020 |
Document 2 | 1-5-2020 | 1-8-2020 |
Document 3 | 1-2-2020 | 1-5-2021 |
Document 4 | 1-8-2020 | |
Document 5 | 1-5-2021 | 1-5-2021 |
Document 6 | 1-2-2021 | 1-2-2021 |
Document 7 | 1-2-2021 | 1-5-2021 |
Document 8 | 1-11-2020 | 1-11-2020 |
Document 9 | 1-11-2021 | |
Document 10 | 1-2-2020 | 1-5-2021 |
What I would like to visualize is very simple: a bar chart in which is shown how many documents have been planned for review every quarter (planned date) and how many have been finished (date ready) in that quarter. However, if I pick either one of the date columns as the x-axis the result is columns of equal hight, I somehow need a "neutral" date axis to show the count of the planned and ready amounts per quarter.
Is it possible to do this with a measure or should I maybe create a helping table?
Many thanks!
Solved! Go to Solution.
First, create a calendar table as the X axis of bar chart .
Then create measures like below:
planned_ = CALCULATE(COUNT('Table'[Subject]),FILTER('Table','Table'[Planned date]<=MAX('Table 2'[Date])&&'Table'[Planned date]>=MIN('Table 2'[Date])))
ready = CALCULATE(COUNT('Table'[Subject]),FILTER('Table',NOT(ISBLANK('Table'[Date ready]))&&'Table'[Date ready]<=MAX('Table 2'[Date])&&'Table'[Date ready]>=MIN('Table 2'[Date])))
First, create a calendar table as the X axis of bar chart .
Then create measures like below:
planned_ = CALCULATE(COUNT('Table'[Subject]),FILTER('Table','Table'[Planned date]<=MAX('Table 2'[Date])&&'Table'[Planned date]>=MIN('Table 2'[Date])))
ready = CALCULATE(COUNT('Table'[Subject]),FILTER('Table',NOT(ISBLANK('Table'[Date ready]))&&'Table'[Date ready]<=MAX('Table 2'[Date])&&'Table'[Date ready]>=MIN('Table 2'[Date])))
Brilliant, this was exactly what I was looking for. Only remaining question will be how to manage interactions if you add a table as a visual. How do you manage relations with Table 1 and table 2 in this case, you have to pick a column from table 1 (planned or ready) to connect with date in table 2. Which than makes it impossible to click on only the planned or a ready column in the bar chart, but you always open both against the chosen relationship.
Hope the explanation above makes sense, if not please let me know!
@Lumegu , You need to create a common date table and join with both dates. You can use userelationship wo activate inactive relationship
refer smiliar example
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
75 | |
63 | |
51 | |
48 |
User | Count |
---|---|
204 | |
86 | |
64 | |
59 | |
56 |