The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi ,
I using two slicer, one for year and another one for month, if i select 2021 year, the month slicer only have to show upto october month, because 2021 November and december values(Sales) not added. Kindly advice how to create a slicer while select 2021 year and month upto october.
Solved! Go to Solution.
Hi @NavaneethaRaju ,
You can create a measure like this, put it in the month visual filter and set its value as 1:
A =
IF (
SELECTEDVALUE ( 'Table'[Date].[Year] ) = YEAR ( TODAY () ),
IF ( MAX ( 'Table'[Date].[MonthNo] ) <= MONTH ( TODAY () ), 1, 0 ),
1
)
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @NavaneethaRaju ,
You can create a measure like this, put it in the month visual filter and set its value as 1:
A =
IF (
SELECTEDVALUE ( 'Table'[Date].[Year] ) = YEAR ( TODAY () ),
IF ( MAX ( 'Table'[Date].[MonthNo] ) <= MONTH ( TODAY () ), 1, 0 ),
1
)
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @v-yingjl ,
I'm getting error, using now.
And one thing in your measure You used the column [monthNo], that is not in your table. please check and advice.
Your Measure.
Your table.
Create the following Measure :
This gives only those months have sales in your Sales Table.
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Create a measure with this code:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
User | Count |
---|---|
16 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
8 | |
8 |