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
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 an 8 times 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 an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

Hi Matt

Thank you very much it work fine now

Paul

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.