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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.