Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello Community,
I have a report with a table (below image) that shows Products and sales for each day
I have created a measure to calculate the sum of all sales for each product:
Total Sales = SUM(Table[Sales_Invoice])
In this table I have applied a filter to show only the product that have less than 100 units sold.
For 1 day it works fine, but if the range of dates is more than 1, the behaviour is that it sums the units of the dates.
Thank you in advance for your help.
Solved! Go to Solution.
HI,
Please check the attached file. Or, please share your sample pbix file's link here and then I can try to look into it.
Hi @yellow43 ,
Here are the steps you can follow:
1. Create calculated column.
Month =
FORMAT('Table'[Date],"dd")
&"/"&
FORMAT('Table'[Date],"mmm")
2. Create measure.
Sum_Measure =
var _sum=
CALCULATE(
SUM('Table'[Qty Sold]),FILTER(ALL('Table'),
'Table'[Product]=MAX('Table'[Product])&&
'Table'[Month]=MAX('Table'[Month])))
return
IF(
_sum>=100,BLANK(),_sum)
3. Result:
If you need pbix, please click here.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi,
I tried to create a sample pbix file like below.
The below is finding quantity that is lower than 100 per day per product.
Please check the below picture and the attached pbix file.
I hope the below can provide some ideas on how to create a solution for your dataset.
Quantity less than 100 per day: =
CALCULATE (
[Quantity measure:],
FILTER (
SUMMARIZE ( Data, 'Product'[Product], 'Calendar'[Date] ),
[Quantity measure:] < 100
)
)
Hello @Jihwan_Kim,
Thank you for your help! But I have not explained well.
Please see the image with desired output
HI,
Please check the attached file. Or, please share your sample pbix file's link here and then I can try to look into it.
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 | |
| 6 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 21 | |
| 12 | |
| 9 | |
| 5 | |
| 5 |