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.
Greetings all
I've a table where I put values in it (example below).
I want to be able to hide Q3-Incentive and Q4-Incentive when we are in Q2. When I enter Q3, then, then I wish to show Q3-Incentive column.
I would appreciate any help or maybe giving me other options.
Name | Q1-Incentive | Q2-Incentive | Q3-Incentive | Q4-Incentive | Total |
John Doe | $2,000 | $3,500 | 0 | 0 | $5,500 |
Solved! Go to Solution.
Hi, @Anonymous
Try to create measures as following:
isShow =
var _when =dt"2022-6-30" //set as you want
var _today=TODAY()
return
IF(MAX('Table'[Date])<=_when,1)
_Value = CALCULATE(SUM([Value]),FILTER('Table',[isShow]=1))
Result:
Please refer to the attachment below for details.
Hope this helps.
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
Try to create measures as following:
isShow =
var _when =dt"2022-6-30" //set as you want
var _today=TODAY()
return
IF(MAX('Table'[Date])<=_when,1)
_Value = CALCULATE(SUM([Value]),FILTER('Table',[isShow]=1))
Result:
Please refer to the attachment below for details.
Hope this helps.
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , change you measure like this and try
if([measure]=0, blank(), [measure])
It didn't work, the column showed as blank. I don't want to see the column at all when it's blank or 0.
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 |
---|---|
113 | |
100 | |
78 | |
76 | |
52 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |