Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreShape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.
Hello All,
I have a requiremet to show the count of old meter and new meter in a single matrix. Old meter count will be decreasing and new meter count will be increasing on daily basis. I am using direct query and not storing any data inside Power BI. Data from table itself coming as rolling total on daily basis (Sample data from the table provided below).
I wanted to display the min of old count and max of new count on monthly basis as shown below. Example for the month of october in matrxi, Count of old meter is 9000 and new meter is 2000. In november, Old meter is 5000 and new meter is 6000. Expected output is provided below.
I am facing challenges in creating a DAX measure to show the old and new count as metioned in matrix visual. I would appreciate any suggestions/input in showing the old and new count in a matrix.
Data from Input table
Date | Old Meter Count | New Meter Count |
10/20/2019 | 10000 | 1000 |
10/21/2019 | 9000 | 2000 |
11/5/2019 | 8500 | 2500 |
11/10/2019 | 7500 | 3500 |
11/12/2019 | 5000 | 6000 |
12/1/2019 | 4000 | 7000 |
12/15/2019 | 2000 | 9000 |
12/20/2019 | 1000 | 10000 |
Expected Output
Meters | Oct | Nov | Dec |
Old Meter Count | 9000 | 5000 | 1000 |
New Meter Count | 2000 | 6000 | 10000 |
Hi @manojsv19
try new table
NewTable = summarize('Table1';Table1[Date].[Month];"Old Meter Count";min('Table1'[Old Meter Count]);"New Meter Count";MAX('Table1'[New Meter Count]))
are sure you need output exactly as you showed above? it will not be so easy 🙂
do not hesitate to give a kudo to useful posts and mark solutions as solution
Hi,
Thank you for the inputs!!
Yes, my requirement is to show the output as provided in the example and am using direct query. I wanted to get the summarize count from the query and don't want to do the aggregration at Power BI.
Let me konw for any additional information.
User | Count |
---|---|
25 | |
21 | |
20 | |
13 | |
12 |
User | Count |
---|---|
40 | |
28 | |
28 | |
22 | |
21 |