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.
Hi,
I have two tables in my Model.One is Date Dim and other is a fact table.
Tables are connected using date field. Fact table is having a column Volume that needs to be aggregated using AVERGAE builtin function.Mesaure is created with Average function [Avg= AVERGAE(Volume)] .Now if condition is applied on this mesaure
(If condition : ""If Average is blank show "TBD" else Average" ) and used in my tabular format report. We have year filter on top.
After adding if condition year filter is not working properly. Any Idea? Thanks in Advance
Nitz
Hi @Anonymous ,
Is this the same issue?
Average Measure with IF Condition + ISEMPTY =
VAR _Average = [Average Measure Without If Condition]
RETURN
IF (
ISEMPTY ( 'Summary' ),
BLANK (),
IF ( ISBLANK ( _Average ), "TBD", FORMAT ( _Average, "Currency" ) )
)
Regards,
@Anonymous ,Based on what I got
a new measure , assume Avg is measure
if(isblank([Avg], "TDB", [Avg])
@amitchandak : Yes formula is correct and I have used the same [if(isblank([Avg], "TDB", [Avg])] but when I add this mesaure to my tabular format report,filter given on Year stop working properly.
@amitchandak : One more thing if I remove "If condition" from this mesaure then Year Filter is working properly.
@Anonymous , If handle null then it will show all year, It will show all year, we have force filter again
try like
measure =
calculate(if(isblank([Avg], "TDB", [Avg]), filter(Table, Table[Year] in allselected(Table[Year]) ))
Hi @Anonymous! Did you get the solution? I've the same issue: Date filter not working in a conditional measure - Microsoft Power BI Community
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 |
---|---|
100 | |
100 | |
80 | |
77 | |
66 |
User | Count |
---|---|
134 | |
106 | |
104 | |
85 | |
73 |