DAX Formula – Dynamic count calcs for left outer join

Pawel P

New Member
Joined
Feb 2, 2022
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
Hi All and welcome to the forum,


I’m looking for help in writing the formula for the below business case.

First, let me give you an overview of the dataset and what I need to calculate.

Data

Data set is a table that is a result of appending hundreds of reports.
There are two relevant columns for the below calcs:

- ReportDate – working day formatted as dates, shows the data source (report)

- BreakID:

- BreakID is unique but only on the report level

- The same BreakID can be visible over a few dates untill it is resolved

The result I’m looking for (in the example below it's "6" which should be displayed for 03 Feb)

I would like to calculate how many BreakID were „cleared” on the given day.

This means that I need to compare the list of BreakID for let’s say today (T0) and for the previous day (T-1).

The count of breaks that were present yesterday but are no longer in today's report would be the number I’m looking for.



This is why I thought about the left outer join. I don’t know how to create DAX formula which will calculate that and allow me to visualize the data in time on the graph.



I would appreciate your help.
 

Attachments

  • DAX.PNG
    DAX.PNG
    15.2 KB · Views: 17

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,224,817
Messages
6,181,148
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top