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,
I have a Measure that creates Prior Year Sales
Sales PY =
CALCULATE (
Order_Line_Invoice[SalesSUM],
SAMEPERIODLASTYEAR(Dates_INV[Date]))
I need to calculate the Sales by Category as a percent of Prior Year Sales. I can get the correct answer using a measure for current year.
My Percentage is > 100% using this formula:
Percentage Of Total PY = CALCULATE (
Order_Line_Invoice[SalesSUM],
SAMEPERIODLASTYEAR(Dates_INV[Date]))/CALCULATE(sum('Order_Line_Invoice' [Sales]),ALLSELECTED())
Is it the ALLSELECTED()?
I'll post it as Answerwed. Please help.
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 |
|---|---|
| 9 | |
| 8 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 23 | |
| 14 | |
| 10 | |
| 6 | |
| 5 |