Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
So I have a slicer that filters out employees based on thier supervisor. When i try to exclude a supervisors team, that supervisors team still shows but they are just blank. This issue strted when i input this measure to sum durations. Is there any way I can keep the sum of the durations and have the table only show the actuall values selected?
Heres the formula i used to sum duration:
Logged In Time = (VAR TotalSeconds=SUMX('ScorecardRawData',HOUR('ScorecardRawData'[LoggedOnTime])*3600+MINUTE('ScorecardRawData'[LoggedOnTime])*60+SECOND('ScorecardRawData'[LoggedOnTime]))
VAR Days =TRUNC(TotalSeconds/3600/8)
VAR Hors = TRUNC((TotalSeconds-Days*3600*8)/3600)
VAR Mins =TRUNC(MOD(TotalSeconds,3600)/60)
VAR Secs = MOD(TotalSeconds,60)
return IF(Hors<10,"0"&Hors,Hors)&":"&IF(Mins<10,"0"&Mins,Mins)&":"&IF(Secs<10,"0"&Secs,Secs))
Here is what my table look slike when i try and filter. The Red values should not be showing up at all because I have not selected those people in my slicer
Solved! Go to Solution.
You should be able to use the filter on the measure to only show when the measure is greater than zero. This will eliminate the empty rows.
Hi Sebastian_N1,
As a general solution, you can add an if condition to wrap your measure like pattern below:
Average of SF% = IF ( CALCULATE ( aggregation ) <> BLANK (), CALCULATE ( aggregation ) )
Regards,
Jimmy Tao
Hi Sebastian_N1,
As a general solution, you can add an if condition to wrap your measure like pattern below:
Average of SF% = IF ( CALCULATE ( aggregation ) <> BLANK (), CALCULATE ( aggregation ) )
Regards,
Jimmy Tao
You should be able to use the filter on the measure to only show when the measure is greater than zero. This will eliminate the empty rows.
Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Sample data.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
84 | |
76 | |
73 | |
42 | |
36 |
User | Count |
---|---|
109 | |
56 | |
52 | |
48 | |
43 |