Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hey Everyone,
I have line chart with dates in the x-axis. The dates from this table is connected to a date table, which i am using in the slicer to filte out data. While using the date slicer the data gets filtered but the past dates still show up on my visual on the x axis as "0". Any idea how I can show dates only for the dates selected in the slicer?
Solved! Go to Solution.
Hi,
Revise your measures to:
ActualLine = divide(SUM('SU ActualvsTargetline chart'[BillTypeHours]),SUM('SU ActualvsTargetline chart'[UltizationBasisHours]))TargetLine = divide(SUM('SU ActualvsTargetline chart'[TargetBillHours]),SUM('SU ActualvsTargetline chart'[UltizationBasisHours]))
Hope this helps.
Hi,
What measure have you written?
Hi Ashish,
I am using the "start of week" field for the x-axis and the dax used to create this table is:
Hi,
I'd suggest that you solve this with a measure rahter than a calculated column formula. I can help, if you share the download link of the PBi file.
Thanks for your help @Ashish_Mathur . This is a calculated table. I am then using the field as it it from that table but to no avail.
Sure thing @Ashish_Mathur . Here's the link to the test file: https://drive.google.com/file/d/1TlJN4OCZQQx_1_crr7YiYeifJDojEJx2/view?usp=sharing
Hi,
Revise your measures to:
ActualLine = divide(SUM('SU ActualvsTargetline chart'[BillTypeHours]),SUM('SU ActualvsTargetline chart'[UltizationBasisHours]))TargetLine = divide(SUM('SU ActualvsTargetline chart'[TargetBillHours]),SUM('SU ActualvsTargetline chart'[UltizationBasisHours]))
Hope this helps.
I have the saem problem. Why does the visual not automatically only show the selected dates.
State your question clearly. Share some data to work with and show the expected result.
This worked perfectly! Thanks Ashish!:)
You are welcome.
Hi @akkitek
I'm not sure what your calculated table is supposed to do.
Since you have PBI_Utilization[Primarykeycolumn] as part of your SUMMARIZE, your summary table has the same number of rows as the original table.
You might want to rethink your approach. As @Ashish_Mathur mentioned, it would probably be best to use measures based on your original table.
Just my observation.
Thanks for your response @grantsamborn ! You were right! Ashish's measure did the trick!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 77 | |
| 37 | |
| 31 | |
| 29 | |
| 26 |