Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
SUMESHKUMAR22
Helper IV
Helper IV

Create custom text based date on X axis

Hi BI folks,

 

Im looking our for a ideal / best approaches to handle below type of visual requirement in purely Power BI or SQL code. How to build the data view for this?

IMG_0458.jpeg

In the mockup image, its Showing last 2-weeks dynamic (2 bars) and the base case (black bar) is constant value.

For a KPI, Basically showing dynamic last 2 weeks with a black constant bar & the circle dot changing as per the last week value more than base case -(black bar) .

 

Please any reference/workaround would be appreciated.

 

Thanks!

1 ACCEPTED SOLUTION

@SUMESHKUMAR22 

since we don't have the fact table, i can only create the date table for testing.

 

pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
ryan_mayu
Super User
Super User

do you have a date slicer that will change the date or if the data were updated, this visual always display last 2 weeks data?

what's more, could you pls provide some sample data? how we get the base case value?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




hi Ryan,


- Always display last 2 weeks (sun-sat) dynamically (looking into it today- it will be 30 mar - 5 mar (Previous week)& 6 - 12 mar (last week)). Current week will not be included because its has not completed the full 7 days timeframe.

 

- for base case, we can enter sample data using datatable in power bi (kpi name & base value) as its a constant value.

 

thanks in advance!

 

@SUMESHKUMAR22 

since we don't have the fact table, i can only create the date table for testing.

 

pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




SUMESHKUMAR22
Helper IV
Helper IV

Hi Team,

 

Currently my fact model looks like below:

date, kpi name, few dimensions, Units (sum/divide), value , value 1.

my generic calculation: if the Units = 'sum' then sum(value) else sum(value)/ sum(value1)


Also for the above case of scenario should I create a disconnected table approach?


Help me with the steps please. Thanks!

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.