Forum Discussion
mlleverino
9 years agoHelper I
Retrieving last count recorded
Need help with DAX instruction to do the following. REPORTING PERIOD REVENUES TOOL COUNT (as of this month) 2016-04 1,000 2 2016-04 ...
- 9 years ago
Hi mlleverino
Here are three calculated measures that might be getting closer. I don't think I fully understand the Tool Count measure but this is what I have for your sample data. It might only be a slight tweak away from what you need.
Tool Count = CALCULATE( DISTINCTCOUNT('Table1'[Amount]), 'Table1'[Account Type] ="Systems" ) Revenue = CALCULATE( SUM('Table1'[Amount]), 'Table1'[Account Type] ="Revenue" ) Result = DIVIDE([Revenue],[Tool Count])
mlleverino
9 years agoHelper I
| Reporting Period | Fiscal Year | Fiscal Qtr | Parent Customer | BU Name | Amount | Account Type |
| 2016-04 | FY17 | FY17 Q1 | Customer A | CT | 5 | Systems |
| 2016-05 | FY17 | FY17 Q1 | Customer A | CT | 5 | Systems |
| 2016-06 | FY17 | FY17 Q1 | Customer A | CT | 5 | Systems |
| 2016-07 | FY17 | FY17 Q2 | Customer A | CT | 6 | Systems |
| 2016-08 | FY17 | FY17 Q2 | Customer A | CT | 6 | Systems |
| 2016-09 | FY17 | FY17 Q2 | Customer A | CT | 6 | Systems |
| 2016-10 | FY17 | FY17 Q3 | Customer A | CT | 6 | Systems |
| 2016-11 | FY17 | FY17 Q3 | Customer A | CT | 7 | Systems |
| 2016-12 | FY17 | FY17 Q3 | Customer A | CT | 7 | Systems |
| 2016-05 | FY17 | FY17 Q1 | Customer A | FSI | 4 | Systems |
| 2016-07 | FY17 | FY17 Q2 | Customer A | FSI | 6 | Systems |
| 2016-04 | FY17 | FY17 Q1 | Customer A | FSI | 6 | Systems |
| 2016-08 | FY17 | FY17 Q2 | Customer A | FSI | 6 | Systems |
| 2016-10 | FY17 | FY17 Q3 | Customer A | FSI | 7 | Systems |
| 2016-06 | FY17 | FY17 Q1 | Customer A | FSI | 7 | Systems |
| 2016-11 | FY17 | FY17 Q3 | Customer A | FSI | 8 | Systems |
| 2016-12 | FY17 | FY17 Q3 | Customer A | FSI | 9 | Systems |
| 2016-09 | FY17 | FY17 Q2 | Customer A | FSI | 10 | Systems |
| 2016-04 | FY17 | FY17 Q1 | Customer A | CT | 1,000 | Revenue |
| 2016-05 | FY17 | FY17 Q1 | Customer A | FSI | 1,575 | Revenue |
| 2016-07 | FY17 | FY17 Q2 | Customer A | FSI | 2,150 | Revenue |
| 2016-04 | FY17 | FY17 Q1 | Customer A | FSI | 2,725 | Revenue |
| 2016-08 | FY17 | FY17 Q2 | Customer A | FSI | 3,300 | Revenue |
| 2016-05 | FY17 | FY17 Q1 | Customer A | CT | 3,875 | Revenue |
| 2016-10 | FY17 | FY17 Q3 | Customer A | FSI | 4,450 | Revenue |
| 2016-06 | FY17 | FY17 Q1 | Customer A | FSI | 5,025 | Revenue |
| 2016-06 | FY17 | FY17 Q1 | Customer A | CT | 5,600 | Revenue |
| 2016-11 | FY17 | FY17 Q3 | Customer A | FSI | 6,175 | Revenue |
| 2016-07 | FY17 | FY17 Q2 | Customer A | CT | 6,750 | Revenue |
| 2016-12 | FY17 | FY17 Q3 | Customer A | FSI | 7,325 | Revenue |
| 2016-08 | FY17 | FY17 Q2 | Customer A | CT | 7,900 | Revenue |
| 2016-09 | FY17 | FY17 Q2 | Customer A | FSI | 8,475 | Revenue |
| 2016-09 | FY17 | FY17 Q2 | Customer A | CT | 9,050 | Revenue |
| 2016-10 | FY17 | FY17 Q3 | Customer A | CT | 9,625 | Revenue |
| 2016-11 | FY17 | FY17 Q3 | Customer A | CT | 10,200 | Revenue |
| 2016-12 | FY17 | FY17 Q3 | Customer A | CT | 10,775 | Revenue |
mlleverino
9 years agoHelper I
the dataset has all tool counts increasing, but there may be a chance they decrease. the tool counts are total as of that month. they are not additional tools to the previous month.