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

Dates issues with timerange and multiple dates

Hello,

 

I would like to list lost contracts in previous month with a begin and strat date.

 

1) My first problem is i want to have one only Slicer selecting the begin and end date instead of too.

I select BEFORE begin date and AFTER end date:

Capture.PNG

 

 

 

 

 

 

2) My second issue is i want to list the lost contracts from the previous period (last day of previous quarter (begin & end date).

In the same time list in gree all the won contracts from the actual period.


Test :

If i select begin date 31/01/2021 and end date 31/01/2021.

I would like to see the lost and won contracts from the last day of previous quarter (31/12/2021 for this exemple).

Then i go 31/01/2021 I should see in red the lost US contract and in green the won CA contract with a total lose and win contracts.

 

ex: sample.pbi

 

As i am new in powerbi i don't know how to perform this.

1 ACCEPTED SOLUTION

@Anonymous , Check page 2 in the file attached after signature

 

View solution in original post

5 REPLIES 5
v-deddai1-msft
Community Support
Community Support

Hi @Anonymous ,

 

Would you please try to accept the useful reply as answer to help others find it more quickly?

 

Best Regards,

Dedmon Dai

Anonymous
Not applicable

Than you, you saved my day ;).

amitchandak
Super User
Super User

@Anonymous , Not very clear. But we can get min and max date based on range on single date

 

measure =
var _min = minx(allselected(Date[Date]),Date[Date])
var _max = maxx(allselected(Date[Date]),Date[Date])
return

// use in calculations

Anonymous
Not applicable

Sorry but it doesn't help me. Can you give me an exemple with the file i provided ?
For exemple if i run this code, it doesn't work:
LDPQ = LASTDATE(PREVIOUSQUARTER('data'[Date Begin]))
The error indicates i can't have multiple values in the same column

@Anonymous , Check page 2 in the file attached after signature

 

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.