March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have a DAX written :
EOC_Sent = CALCULATE(COUNT('Sheet1'[SENTMONTH]), 'Sheet1'[SurveyTaken]=2)
but not getting the right value which is suppose to be 217 when i manually filter to check the dataset in Excel. But my R code is giving me the right value : Filter(!is.na(SentMonth), Surveytaken==2)
Hoping someone could help on how i can rewrite the DAX to exclude blanks or NA.
Solved! Go to Solution.
Hi @RilwanFlame ,
I'm not sure what the data is in your table "sheet1", I created a simple for testing.
then new a calculated column.
EOC_Sent =
CALCULATE (
COUNT ( 'Sheet1'[SentMonth] ),
'Sheet1'[SurveyTaken] <> BLANK ()
&& 'Sheet1'[SurveyTaken] = 2
)
return result.
Attach the PBIX file for reference. Hope it helps.
If this doesn't work for you or I misunderstand your needs, please consider sharing more details about it. And it would be great if there was a sample file without any sensitive information here.
It makes it easier to give you a solution.
Best Regards,
Community Support Team_Gao
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
Hi @RilwanFlame ,
I'm not sure what the data is in your table "sheet1", I created a simple for testing.
then new a calculated column.
EOC_Sent =
CALCULATE (
COUNT ( 'Sheet1'[SentMonth] ),
'Sheet1'[SurveyTaken] <> BLANK ()
&& 'Sheet1'[SurveyTaken] = 2
)
return result.
Attach the PBIX file for reference. Hope it helps.
If this doesn't work for you or I misunderstand your needs, please consider sharing more details about it. And it would be great if there was a sample file without any sensitive information here.
It makes it easier to give you a solution.
Best Regards,
Community Support Team_Gao
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
Thank you so much for your response. The DAX worked giving the correct value.
On trying to get the RR when the slicer for a particular month is selected, i get the more than a 100% which does not seem right.
Here is my DAX for the RR %:
EOC_RR = CALCULATE(COUNT('Sheet1'[SurveyTaken]), 'Sheet1'[SurveyTaken]=2, 'Sheet1'[main_module_complete]=2) / CALCULATE(COUNT('Sheet1'[SentMonth]),'Sheet1'[SurveyTaken] <> Blank() && 'Sheet1'[SurveyTaken]=2)
Hi:
What does your data look like? Do you want a measure or calculated column? Thanks
Calculate columns
Can you show what the data cloumns looks like in your Sheet1?
for example, if it is all in one table, you can paste it:
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
16 | |
15 | |
7 | |
6 |
User | Count |
---|---|
33 | |
29 | |
16 | |
13 | |
12 |