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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
dpicinin
Frequent Visitor

COmissions by date

 I have a table with the date the commissions changed. I need to make other calculations based on these commissions.
But I was unable to show the percentage for the other dates.


For example.. After 01/02/2014, I want to show 2.5% in every line not only on the day it changed. Until the value of the commissions' changes again.

 

comm.jpg

 

 

2022-06-07_16h40_58.jpg

 

Urner Barry.pbix

 

 

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @dpicinin ,

 

Please check the formula:

Comm Rate = CALCULATE(MIN(Comm[Comm]),FILTER(Comm,Comm[Date]<=SELECTEDVALUE('Calendar'[Date])))

vjaywmsft_0-1654850775079.png

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

4 REPLIES 4
v-jayw-msft
Community Support
Community Support

Hi @dpicinin ,

 

Please check the formula:

Comm Rate = CALCULATE(MIN(Comm[Comm]),FILTER(Comm,Comm[Date]<=SELECTEDVALUE('Calendar'[Date])))

vjaywmsft_0-1654850775079.png

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
Anonymous
Not applicable

d after create this measure

com rate =
var activdate=selectedvalue('UB Data'[Date])
return
calculate(max(Comm[Comm]),'Calendar'[Date]>=activdate&&'Calendar'[Date]<=activdate)

Thanks for your time James.

 

I did as you mentioned. But it didn't work. 

2-5perc.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Urner Barry.pbix

Anonymous
Not applicable

llo

 

just insert your calendar date instead of UB date date

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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