Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello,
I hope you can help me.
I have a measure for the Total Head Count for terminated -
I'm trying to make the Card display only the current count for the year not the total but would also need to change when selecting a year or years in the slicer.
Thank you!
Solved! Go to Solution.
@PatrickLamoste you second measure need change or you can club both in one, double check the syntax/table names, might be typo
Terminated Selected Year = VAR selectedYear = SELECTEDVALUE( AllTerminated[Termination Year], YEAR(TODAY())) RETURN CALCULATE( COUNT(Allterminated[Last Date Worked]), AllTerminated[Termination Year] = selectedYear
)
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@PatrickLamoste are you looking to have year slicer on the page, and if no value selected then use current year otherwise use year from slicer?
If that is the case you can add a measure to get year selected, if not selected then default to current year
selectedYear = SELECTEDVALUE( Table[year], YEAR(TODAY() )
once you have year, you can update your count measure and filter data on "selectedyear" measure.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Yes, that is exactly how I want the Card to function. Thank you I will give it a whirl.
@PatrickLamoste sounds good. feel free to reach out if need assistance.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hello,
I can't seem to make it work.
Here is my Selected Year Measure
And here is my Filter
Am I missing something here? I am fairly new to PBI.
Thanks!
@PatrickLamoste you second measure need change or you can club both in one, double check the syntax/table names, might be typo
Terminated Selected Year = VAR selectedYear = SELECTEDVALUE( AllTerminated[Termination Year], YEAR(TODAY())) RETURN CALCULATE( COUNT(Allterminated[Last Date Worked]), AllTerminated[Termination Year] = selectedYear
)
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
User | Count |
---|---|
128 | |
108 | |
99 | |
65 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |