Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I'm trying to achieve 2 things.
The first is to create a measure that I can use with a card to show acount of how many items have "expired" by check if a date in the Last Updated column is six months older or more than today's date (dynamincally).
The second, is to display the same data within a table and have all dates that are more than six months old highlighted red.
I can do both thins in excel but am really struggling with how to do it in Power Bi.
Thanks!
Solved! Go to Solution.
Figure it out, used the below:
Figure it out, used the below:
Hey @HarperCash ,
maybe tell us how your data looks like and what you tried already?
Just saying "I need a calcualtion that shows the number" doesn't help anyone. We don't know how your data looks like....
Best regards
Denis
Sorry about that, example of data below:
Instance | Division | Brand | Chatbot Name | Channel | Type | Automation | Status | Last Updated: | Last Published: |
UK | Occ | X - HW | AWW | SMS | Info Capture | N | Live | 23/03/2023 | 23/03/2023 |
Trying to count how many rows are expired by using the Last Updated column but only coutning rows that have a date that is more than six months from the current date.
In terms of what I've tried, I tried creating a new column that would provide a value of 1 or 0 based on the below:
if [#"Last Updated:"]([today]) >= 90 then 1 else 0
I also tried creating a Measure using the below:
CALCULATE ( DISTINCTCOUNT Sheet1[Last Updated] <= EOMONTH ( TODAY (), -6 ) )
But neither worked
User | Count |
---|---|
78 | |
74 | |
42 | |
32 | |
28 |
User | Count |
---|---|
100 | |
93 | |
52 | |
50 | |
48 |