Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
101Francisco
New Member

How do I group by Year 2016 Vs 2017 based on total(MetricValue) in PowerBI.

 

Here is how my data looks. 

 

Question: How do I group by Year 2016 Vs 2017 based on total(MetricValue) in PowerBI. 

 

DateAddedSalesFunnelMetricCategoryMetricNameMetricValue
3/1/2016 0:00eComDemandeComStep11590
3/1/2016 0:00LeadFormsDemandLeadForms746
3/1/2016 0:00PhoneDemandSalesCalls1937
3/2/2016 0:00eComDemandeComStep11240
3/2/2016 0:00LeadFormsDemandLeadForms794
3/2/2016 0:00PhoneDemandSalesCalls1759
1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

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]))

22.PNG

 

Regards,

Jimmy Tao

View solution in original post

1 REPLY 1
v-yuta-msft
Community Support
Community Support

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]))

22.PNG

 

Regards,

Jimmy Tao

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.