The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi everyone,
I need to display the number of Items with certain filters:
- Item Group is "GLO"
- Items have been purchased within last 12 months at least 10 times ( so, PO number is >= 10 and date filter is in the last 12 months)
I am trying to create a calculated column to see, how many items meet those criterias.
When I put those filters on a table visual, I can clearly see the correct number of items. But I face a problem when I create DAX formula:
Do you know how to solve that problem?
And also, how to make it a True/False slicer? Meaning that I need to apply it a visual (to show visual only for those items of interest).
Thanks in advance!!
@Anonymous , With help from date table joined to your date
Rolling 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],MAX('Date'[Date]),-12,MONTH),FILTER('BaseData', 'BaseData'[ItemGroup] = "GLO"))
or
Rolling 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],today(),-12,MONTH),FILTER('BaseData', 'BaseData'[ItemGroup] = "GLO"))
Then you need a measure
countx(Values([PurchaseOrder[POnumber]), if([ROlling 12] >10, PurchaseOrder[POnumber], blank() ) )
Rolling Months Formula: https://youtu.be/GS5O4G81fww
Thanks @amitchandak
But there is no Sales data in this table or any other tables that I am using for this report.
Is it possible to avoid sales data somehow and receive the same result with number of items?
Thanks!
User | Count |
---|---|
77 | |
77 | |
36 | |
30 | |
28 |
User | Count |
---|---|
107 | |
100 | |
55 | |
49 | |
45 |