Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe'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
Hi All,
Have another query that wish to get your inputs please
I have 2 tables
1 table is a list of new products ex.
TBL_NewProduct
And have another TBL for the Invoice data
Here's the output that I would want to achieve as an additional column, so basically if the invoicedate is within the DateLaunched and MaxNewProductListed dates then it will be included in the sum of the output
Thanks!
Solved! Go to Solution.
@mangchaaBI
Same as my orgianl reply
New Column =
VAR __LaunchDate = TBL_NewProduct[DateLaunched]
VAR __ListedDate = TBL_NewProduct[MaxNewProductListed]
VAR __Product = TBL_NewProduct[ItemName]
RETURN
CALCULATE(
SUM(TBL[Total]),
TBL[InvoiceDate] >= __LaunchDate,
TBL[InvoiceDate] <= __ListedDate,
TBL[ItemName] <= __Product
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Hi @mangchaaBI ,
Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.
If these also don't help, please share more detailed information and description to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
@mangchaaBI
Use this meaure:
VAR __LaunchDate = TBL_NewProduct[DateLaunched]
VAR __ListedDate = TBL_NewProduct[MaxNewProductListed]
VAR __Product = TBL_NewProduct[ItemName]
RETURN
CALCULATE(
SUM(TBL[Total]),
TBL[InvoiceDate] >= __LaunchDate,
TBL[InvoiceDate] <= __ListedDate,
TBL[ItemName] <= __Product
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
hi @Fowmy Thanks for taking the time to answer, just ran into a bump where I can't seem to add the variables into the equation, thanks
@mangchaaBI
Sorry, Please add this code as a calcualted column to your TBL_NewProduct table.
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@mangchaaBI
Same as my orgianl reply
New Column =
VAR __LaunchDate = TBL_NewProduct[DateLaunched]
VAR __ListedDate = TBL_NewProduct[MaxNewProductListed]
VAR __Product = TBL_NewProduct[ItemName]
RETURN
CALCULATE(
SUM(TBL[Total]),
TBL[InvoiceDate] >= __LaunchDate,
TBL[InvoiceDate] <= __ListedDate,
TBL[ItemName] <= __Product
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Thank you I think this is what I need, problem is that I'm getting a low resource error on my pBI desktop app 😅 cant confirm if this is the fix for me, but I'll tag it as the solution for anyone who wants to try
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 |
|---|---|
| 53 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 74 | |
| 70 | |
| 39 | |
| 35 | |
| 23 |