Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
In my data set, I have two columns with dates. DteOnHold & DteOffHold
I want to create a line chart that counts the the number of dates for each column (DteOnHold & DateOffHold) by day.
I created a Stacked Area Chart and placed the DteOnHold and DteOffHold in the AXIS and Count of DteOnHold & Count DteOffHold in the Values - but this is not giving the correct results in the line chart.
Any suggestions?
Solved! Go to Solution.
Hi, @vincenardo ;
You could create two measures as follows:
count of DteOnHold = CALCULATE(COUNT([DteOnHold]),FILTER(ALL('Table'),[DteOnHold]=MAX('Calendar Relative'[Date])))
count of DteOnHold = CALCULATE(COUNT([DteOnHold]),FILTER(ALL('Table'),[DteOnHold]=MAX('Calendar Relative'[Date])))
In addition , two tables don't have relationship.
The final output is shown below:
If not right ,can you share the output and more details you want to achieve?
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @vincenardo ;
You could create two measures as follows:
count of DteOnHold = CALCULATE(COUNT([DteOnHold]),FILTER(ALL('Table'),[DteOnHold]=MAX('Calendar Relative'[Date])))
count of DteOnHold = CALCULATE(COUNT([DteOnHold]),FILTER(ALL('Table'),[DteOnHold]=MAX('Calendar Relative'[Date])))
In addition , two tables don't have relationship.
The final output is shown below:
If not right ,can you share the output and more details you want to achieve?
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
For additional filtering, how can I modify the COUNT formulas so that I can use a slicer to filter the chart based on the Task Name?
Hi, @vincenardo ;
If you have slicer, you could modify it.
count of DteOnHold = CALCULATE(COUNT([DteOnHold]),FILTER(ALLSELECTED('Table'),[DteOnHold]=MAX('Calendar Relative'[Date])))
change ALL() to ALLSELECTED().
Best Regards,
Community Support Team_ Yalan Wu
This works perfectly! Thanks!
@vincenardo , You can create a common date table, Join both dates with date of date table . One join will be inactive, that can be activated using userelationship
refer if this can help
Thanks @amitchandak -- I need some additional help, I am still a bit confused.
I created a date table using this formula -
I am confused on what calculations I need to create next.
Thanks!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
81 | |
53 | |
37 | |
37 |