Forum Discussion
ALLNOBLANKROW
Hi all
I am using ALLNOBLANKROW because it removes the blanks nicely fom the related table.
I however would like the Slicer filter at the top of my report (UW month) to also limit the results.
Is there a better way of doing this?
Code below:
CALCULATE(
MAX('DimUWMonth'[Month]),
ALLNOBLANKROW('FactPaymentPattern')
)
- Anonymous2 years ago
Hi selwynvr ,
You can try the following steps.
1. Create a calculated table.Table 2 = DISTINCT('Table'[UW Month])
2. create MEASURE.MEASURE = VAR _num1 = VALUE ( LEFT ( MAX ( 'Table'[UW Month] ), 2 ) ) VAR _num2 = VALUE ( LEFT ( MAX ( 'Table 2'[UW Month] ), 2 ) ) RETURN IF ( _num1 <= _num2, 1 )
3. Filter the data with a MEASURE value of 1.If your Current Period does not refer to this, please clarify in a follow-up reply.
Best Regards,
Clara Gong
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 Replies
- Greg_Deckler
Community Champion
selwynvr Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882
Also, 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
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.- selwynvrFrequent Visitor
Hi Greg_Deckler
Thank you for responding
Current Output (for New Measure column)Uw Month New Measure FactPaymentPattern Division 16/17 24/25 1 17/18 24/25 1 18/19 24/25 1 19/20 24/25 1 20/21 24/25 1 21/22 24/25 1 22/23 24/25 1 23/24 24/25 1 24/25 24/25 1
Desired output when the Slicer at the top of the report says the Max is now 23/24UW Month New Measure FactPaymentPattern Division 16/17 23/24 1 17/18 23/24 1 18/19 23/24 1 19/20 23/24 1 20/21 23/24 1 21/22 23/24 1 22/23 23/24 1 23/24 23/24 1
Please let me know
Thanks
- AnonymousNot applicable
Hi selwynvr ,
You can try the following steps.
1. Create a calculated table.Table 2 = DISTINCT('Table'[UW Month])
2. create MEASURE.MEASURE = VAR _num1 = VALUE ( LEFT ( MAX ( 'Table'[UW Month] ), 2 ) ) VAR _num2 = VALUE ( LEFT ( MAX ( 'Table 2'[UW Month] ), 2 ) ) RETURN IF ( _num1 <= _num2, 1 )
3. Filter the data with a MEASURE value of 1.If your Current Period does not refer to this, please clarify in a follow-up reply.
Best Regards,
Clara Gong
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.