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
Hello everyone!!
I want to create a mesure which would show me the count where rc month is less than of equal to chosen slicer month and rcm month is less than of equal to chosen slicer month by selecting only one month from slicer. Say i chose april only from slicer the count of rows from jan till april should be shown. I have a date dimension from where i am filtering my month and its effect is shown in fact table but only till the chosen month. Here is the dax i am using
Solved! Go to Solution.
Hi @Anonymous ,
First of all believe that your measure is over complicated since you are using two times the ALL syntax over the FACT table believe that you can adjust you measure to be:
CALCULATE (
COUNTROWS ( 'fact table' ),
FILTER (
ALL ( 'fact table' ),
'fact table'[rc month] >= 1
&& 'fact table'[rc month] <= MAX ( 'Date dimension'[Date Key] )
&& NOT ( 'fact table'[RCM month] ) = BLANK ()
)
)
When you are refering to have your filter independent from your slicer what do you mean? How do you want to gilter the information?
Can you share a sample file and expected result?
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Anonymous ,
First of all believe that your measure is over complicated since you are using two times the ALL syntax over the FACT table believe that you can adjust you measure to be:
CALCULATE (
COUNTROWS ( 'fact table' ),
FILTER (
ALL ( 'fact table' ),
'fact table'[rc month] >= 1
&& 'fact table'[rc month] <= MAX ( 'Date dimension'[Date Key] )
&& NOT ( 'fact table'[RCM month] ) = BLANK ()
)
)
When you are refering to have your filter independent from your slicer what do you mean? How do you want to gilter the information?
Can you share a sample file and expected result?
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsMarch 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
User | Count |
---|---|
90 | |
90 | |
83 | |
73 | |
49 |
User | Count |
---|---|
167 | |
149 | |
98 | |
73 | |
57 |