cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Paulyeo11
Impactful Individual
Impactful Individual

How to convert sale field to measure field ?

Hi All

 

Below expression working fine  , i need to replace field = sale to field =sales :-
 
Sales YTD =
var _max = today()
return
calculate(TOTALYTD(('SALES'[sale]),'Date'[Date]),filter('Date','Date'[Date]<=_max))
 
When i replace aboe sale with sales , i get error msg.
 
Pls notice that below image , field = sales is summaration field not measure field. May i know how to convert to measure field ?
 

Paulyeo11_0-1604984500278.png

 

1 ACCEPTED SOLUTION

Wrap a SUM() function around 'SALES'[sales



* Matt is a Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

View solution in original post

2 REPLIES 2

Wrap a SUM() function around 'SALES'[sales



* Matt is a Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

View solution in original post

Hi Matt

Thank you very much it work fine now

Paul

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

March Update

Check it Out!

Click here to read more about the March 2021 Updates!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

secondImage

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.