Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have a dataset based on the following tables:
- Company
- Item
- Item Ledger Entry
- Sales Header + Sales Line
- (+add Measures)
Between the tables Ive made the following relationships:
Based on this dataset I'm trying to generate a table based on: 'Item'[search descrition]
All info in the table comes from either from the 'Item" table or 'Sales line' and is allowed to be filtered by the date slicer on top of the screen (based on 'SalesHeader'[orderdate])
What I'm trying to do next is add a "stock" column/measure based on the column 'item ledger entry'[remaining quantity]
As you can imagine, this column shouldnt be effected by the Date slicer while stock is just stock.
Whats the best way to prevent this column from being effected by the dateslicer?
Solved! Go to Solution.
HI @fbron,
Did you mean to ignore the specific filter effects between power bi tables? If that is the case, you can consider adding all functions to the Dax formula to prevent particular field filter effects.
Managing “all” functions in DAX: ALL, ALLSELECTED, ALLNOBLANKROW, ALLEXCEPT - SQLBI
Regards,
Xiaoxin Sheng
HI @fbron,
Did you mean to ignore the specific filter effects between power bi tables? If that is the case, you can consider adding all functions to the Dax formula to prevent particular field filter effects.
Managing “all” functions in DAX: ALL, ALLSELECTED, ALLNOBLANKROW, ALLEXCEPT - SQLBI
Regards,
Xiaoxin Sheng
@fbron , Try a measure like
new stock = calculate([stock], all(Date))
or
new stock = calculate([stock], removefilters (Date))
Thanks for the quick response...
Unfortunately your suggested solution(s) don't seem to work in my case.
Seems like you refer to Date as a Table while the date slicer I'm using is based on the column [Order date] from the table 'Sales Header'. Does that mean that I have to work with a date table?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
115 | |
99 | |
88 | |
70 | |
62 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |