TGViewer
Data Science & Machine Learning Data Science & Machine Learning @datasciencefun · 77.8K subscribers
Post #4120 5.18K
✅ Interviewer: Show total revenue for the current year, updating automatically as time progresses.

🙋‍♂️ Me: No problem — here’s how I handled it in Power BI 👇

Steps I followed:
1. Loaded the sales data into Power BI
2. Created a DAX measure:
YTD Revenue = CALCULATE(
    SUM(Sales[Revenue]),
    YEAR(Sales[Date]) = YEAR(TODAY())
)

(Or use built-in TOTALYTD() if a date table is set up) 
3. Added a KPI or card visual to display the revenue 
4. Set up a date table & marked it as Date Table for accurate time intelligence 
5. Formatted currency and added data labels for clarity

Result: A live Year-to-Date revenue figure — fully automated, no manual updates needed ✅

💡 Power BI Tip: Master time intelligence functions like YTD, MTD, and QTD to build real-world dashboards that impress.

💬 Tap ❤️ for more Power BI tips!
  • ❤ 9
More from @datasciencefun
  1. Oct 15, 2026Post #4665
  2. Oct 15, 2026Post #4664
  3. Oct 15, 2026Post #4663
  4. Oct 15, 2026Post #4662
  5. Oct 13, 2026𝗧𝗢𝗣 𝗙𝗥𝗘𝗘 𝗖𝗢𝗨𝗥𝗦𝗘𝗦 𝗧𝗢 𝗕𝗢𝗢𝗦𝗧 𝗬𝗢𝗨𝗥 𝗦𝗞𝗜𝗟𝗟𝗦 𝗜𝗡 𝟮𝟬𝟮𝟲! Explor…
  6. Oct 12, 2026Used when you want to perform calculations for each department. Simple rule: DISTINCT → Gi…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →