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.
I am creating different measure like (<10 days, 10 to 20 Days and >20 Days).
While applying the meaasure in pie chart values, i am getting erroras mentioned below.
sample test .PBIX file attached.
https://1drv.ms/u/s!AiSRcgO5FUmN8SEmIwIM57N3eobB?e=JC5V2l
Solved! Go to Solution.
Hi @saivina2920 ,
As checked your sample pbix file, there are some syntax error in measure [10to20Days] and [LessThan10Days]. Please update them with the below formulas and check whether it can get the correct result:
Note: The part in red font is newly added.
10to20Days = CALCULATE ( DISTINCTCOUNT ( EMP_TABLE[EMP_NO] ), FILTER ( EMP_TABLE, EMP_TABLE[EMP_RESIGN_DATE] >= EMP_TABLE[vCalDate20] && EMP_TABLE[EMP_RESIGN_DATE] <= EMP_TABLE[vCalDate10] && EMP_TABLE[EMP_STATUS] = "Working" ) ) |
LessThan10Days =
CALCULATE (
DISTINCTCOUNT ( EMP_TABLE[EMP_NO] ),
FILTER (
EMP_TABLE,
EMP_TABLE[EMP_RESIGN_DATE] >= EMP_TABLE[vCalDate10]
&& 'EMP_TABLE'[EMP_RESIGN_DATE] <= EMP_TABLE[vToday]
&& EMP_TABLE[EMP_STATUS] = "Working"
)
)
|
Best Regards
Hi @saivina2920 ,
As checked your sample pbix file, there are some syntax error in measure [10to20Days] and [LessThan10Days]. Please update them with the below formulas and check whether it can get the correct result:
Note: The part in red font is newly added.
10to20Days = CALCULATE ( DISTINCTCOUNT ( EMP_TABLE[EMP_NO] ), FILTER ( EMP_TABLE, EMP_TABLE[EMP_RESIGN_DATE] >= EMP_TABLE[vCalDate20] && EMP_TABLE[EMP_RESIGN_DATE] <= EMP_TABLE[vCalDate10] && EMP_TABLE[EMP_STATUS] = "Working" ) ) |
LessThan10Days =
CALCULATE (
DISTINCTCOUNT ( EMP_TABLE[EMP_NO] ),
FILTER (
EMP_TABLE,
EMP_TABLE[EMP_RESIGN_DATE] >= EMP_TABLE[vCalDate10]
&& 'EMP_TABLE'[EMP_RESIGN_DATE] <= EMP_TABLE[vToday]
&& EMP_TABLE[EMP_STATUS] = "Working"
)
)
|
Best Regards
Thanks for your reply.
Is it possible to upload the attachment in the post iteself.
because, i don't find any attachment link in the tool bar. that's why i given one drive link.
same related post in another thread. can you pls. check with that and reply when you are free.
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 |
---|---|
81 | |
76 | |
61 | |
37 | |
33 |
User | Count |
---|---|
99 | |
56 | |
51 | |
42 | |
40 |