Forum Discussion
Supressing values from a table
- 4 years ago
Hi hilvie ,
Based on your description, I have created a simple sample like this:
Please try:
Diff = VAR _currentyear = YEAR ( TODAY () ) RETURN IF ( MAX ( 'Calendar'[Month] ) <= MONTH ( TODAY () ), SUMX ( FILTER ( 'Table', [Month] = MAX ( 'Calendar'[Month] ) && YEAR ( [Date] ) = _currentyear ), [Value] ) - SUMX ( FILTER ( 'Table', [Month] = MAX ( 'Calendar'[Month] ) && YEAR ( [Date] ) = _currentyear - 1 ), [Value] ) )Then select show items with no data:
Final Output:
If the result is not what you want, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.
Refer to:
How to provide sample data in the Power BI Forum
How to Get Your Question Answered Quickly
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Please provide sanitized sample data that fully covers your issue. I can only help you with meaningful sample data.
Please paste the data into a table in your post or use one of the file services like OneDrive or Google Drive.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523