We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello,
I need to find the sales to quote ratio for the current month, sales are calculated based on ActionAttemp date column in a table and quotes are calculated based on Createdtime date column in the same table.
for finding the sales based on ActionAttempt date I wrote the following:
Solved! Go to Solution.
Hi @timazarj
You can make some changes to your Measure as the following if you don't want to create a Calendar table.
SalesActionDate =
CALCULATE (
SUM ( 'Leads'[SOLD] ),
FILTER (
'Leads'[lastAction_timestamp],
'Leads'[lastAction_timestamp]
>= ( DATE ( 2021, 3, 1 ) + TIME ( 00, 01, 01 ) )
&& 'Leads'[lastAction_timestamp]
<= ( DATE ( 2021, 3, 31 ) + TIME ( 12, 01, 01 ) )
)
)
Here is a sample.
Best Regards
Caiyun Zheng
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you all for the help!
Hi @timazarj
You can make some changes to your Measure as the following if you don't want to create a Calendar table.
SalesActionDate =
CALCULATE (
SUM ( 'Leads'[SOLD] ),
FILTER (
'Leads'[lastAction_timestamp],
'Leads'[lastAction_timestamp]
>= ( DATE ( 2021, 3, 1 ) + TIME ( 00, 01, 01 ) )
&& 'Leads'[lastAction_timestamp]
<= ( DATE ( 2021, 3, 31 ) + TIME ( 12, 01, 01 ) )
)
)
Here is a sample.
Best Regards
Caiyun Zheng
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @timazarj
DATESBETWEEN is a Time intelligence function therefore you need a Calendar Table in your model. Your actual Leads Table contains duplicate dates, Can't be for the use of DATESBETWEEN.
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 54 | |
| 39 | |
| 32 | |
| 17 | |
| 15 |
| User | Count |
|---|---|
| 64 | |
| 63 | |
| 37 | |
| 34 | |
| 22 |