Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Here is how my data looks.
Question: How do I group by Year 2016 Vs 2017 based on total(MetricValue) in PowerBI.
DateAdded | SalesFunnel | MetricCategory | MetricName | MetricValue |
3/1/2016 0:00 | eCom | Demand | eComStep1 | 1590 |
3/1/2016 0:00 | LeadForms | Demand | LeadForms | 746 |
3/1/2016 0:00 | Phone | Demand | SalesCalls | 1937 |
3/2/2016 0:00 | eCom | Demand | eComStep1 | 1240 |
3/2/2016 0:00 | LeadForms | Demand | LeadForms | 794 |
3/2/2016 0:00 | Phone | Demand | SalesCalls | 1759 |
Solved! Go to Solution.
Hi 101Francisco,
Create a new calculate column using DAX:
Year = YEAR(Table1[DateAdded])
Then create a measure using DAX:
Total of 2016 = CALCULATE(SUM(Table1[MetricValue]), ALLEXCEPT(Table1, Table1[Year]))
Regards,
Jimmy Tao
Hi 101Francisco,
Create a new calculate column using DAX:
Year = YEAR(Table1[DateAdded])
Then create a measure using DAX:
Total of 2016 = CALCULATE(SUM(Table1[MetricValue]), ALLEXCEPT(Table1, Table1[Year]))
Regards,
Jimmy Tao
User | Count |
---|---|
103 | |
90 | |
78 | |
72 | |
68 |
User | Count |
---|---|
108 | |
96 | |
95 | |
74 | |
71 |