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
Anonymous
Not applicable

Rounding adjustments using EARLIER function.

Hello Experts, 

I am trying to achieve this using Measures and I am stuck to bring VD3 column by using Measures.
VD3 = IF(ROUND(DS[VD2],0)>=DS[Ranking],1,0)
VD2 =

ABS(SUMX(FILTER('DS','DS'[Group]=EARLIER('DS'[Group])),DS[CalcsRounded])-SUMX(FILTER('DS','DS'[Group]=EARLIER('DS'[Group])),DS[Unrounded]))


I appreciate your genius help. Thanks a lot.


image.png

6 REPLIES 6
Nathaniel_C
Super User
Super User

Hi @Anonymous ,

What error are you getting?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

I am not getting any errors since I am not sure what code I should write. 
Basically what I am trying to find is VD3. VD3 = Rounded - Unrounded and this delta 3 need to apply for the first 3 accounts, if the delta is 1 only one account, the delta is 2, only first two, if the delta is 4 only first 4 acc. 

Hi @Anonymous ,

IF(ROUND(MAX(DS[VD2]),0)>=MAX(DS[Ranking]),1,0)

Try this.
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

But how do you find the VD3 (Delta)

Nathaniel_C
Super User
Super User

Hi @Anonymous ,

Would you give us a picture of your expected outcome?

Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Hi Nathaniel_C, the Expected outcome is FN3, 
I achieved this using the EARLIER function at the table level. But need to achieve it only using measures. 

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.