Hello,
I have created a meassure (below) ,
Above meassure allows users to dynamically select the department from the slicer and then all the visual only presents the data based on user selection. It works great, but as soon user selects other values from other slicers (example Year, Manager, etc.) in the report, values of measure above does not change.
Assuming other slicer is Employee[Manager].
Do I need to add something to above meeasure to make it work?
Solved! Go to Solution.
Actually, it was a data issue. My orignal DAX formula worked just fine. Thanks for teh help @TomMartens
Hey,
give this a try:
Total Sales by Dept = IF (ISCROSSFILTERED(DynamicSelection[Selection]) , SWITCH(TRUE(), VALUES(DynamicSelection[Selection]) = "Finance" , CALCULATE(SUM('TableDept'[Total Cost(USD)])), VALUES(DynamicSelection[Selection]) = "Account" , 'TableDept'[Total Cost (EUR)], VALUES(DynamicSelection[Selection]) = "Operations" , 'TableDept'[Total Cost (Fr)], BLANK()))
I just changed one column reference :-), put the CALCULATE(SUM(...)) around the remaining column references.
If this will not solve your issue, you might consider to prepare a pbix file with some sample data, upload the file to onedrive or dropbox and share the link.
Regards,
Tom
Actually, it was a data issue. My orignal DAX formula worked just fine. Thanks for teh help @TomMartens
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!
User | Count |
---|---|
391 | |
104 | |
68 | |
55 | |
49 |
User | Count |
---|---|
376 | |
119 | |
80 | |
67 | |
55 |