Hello all.
I'm quite new with Power BI and I'm facing a problem while I try to create a measure.
I have a table with events, its time stamps and the machine with the problem identified with a serial number.
I wish to know the average of distinct SN per day in a time frame. I know that it is easy to do with a chart, but I need the value as a measure for next calculations.
I show you an example below:
Here are my data. And I want to obtain:
In Excel, the path I follow is the next:
SUM( COUNTIFS ( LISTOFDAYS = DAY && LIST_OF_SN = SN1 ) + COUNTIFS ( LISTOFDAYS = DAY && LIST_OF_SN = SN2 ) + .... + COUNTIFS ( LISTOFDAYS = DAY && LIST_OF_SN = SNn )
This option isn't good neither in Excel nor, of course, in Power BI.
What I've tried?
Create a new table with one column where are the days.
Distinct counts of SN from original table.
And now, with the help of and slicer I want to use both tables in the same page filtering by SN and by date, but I have issues when I link the tables. How can I do that?