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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

Reply
hariepermana
Frequent Visitor

Keep Trend Axis on KPI Visualizations while changing date

Hello expert,

 

I need some suggestion for my KPI Visualization. On my Page there are Date Slice with dropdown type, i just wanted everytime i choose single date my KPI visualization keep showing a single value (at front) and trend value (on the back) like this

2020-11-11_06-34-50.jpg

i thought there was some mistake about my relationship table but i didn't find the root cause yet.

here my table

table 1. master calendar 

table 2. sales

date|amount

2020-11-01|100

2020-11-02|200

2020-11-03|300

 

i appreciate every help

1 ACCEPTED SOLUTION
v-eqin-msft
Community Support
Community Support

Hi @hariepermana ,

In my opinion, at least two data points are required to form a "trend". So when you select a single value in Slicer,the trend could not be shown.

You could use Card visualization to display the selected value and overwrite the original value on KPI. Please follow these steps:

 

1.Set the interaction between KPI and Slicer as "None".

11.13.2.1.gif

2. Adjust indicator size and color to make it as inconspicuous as possible.

11.13.2.2.gif

3. Use Card visual to display the following measure and then put it on KPI to cover up the indicator.

Measure =
CALCULATE (
    SUM ( 'sales'[Value] ),
    FILTER (
        ALL ( 'master calendar' ),
        'master calendar'[Date] = SELECTEDVALUE ( 'master calendar'[Date] )
    )
)

My final output looks like this:

11.13.2.3.gif

 

Here is the pbix file.

 

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please upload some insensitive data samples and expected output.

 

Best Regards,
Eyelyn Qin

View solution in original post

3 REPLIES 3
v-eqin-msft
Community Support
Community Support

Hi @hariepermana ,

In my opinion, at least two data points are required to form a "trend". So when you select a single value in Slicer,the trend could not be shown.

You could use Card visualization to display the selected value and overwrite the original value on KPI. Please follow these steps:

 

1.Set the interaction between KPI and Slicer as "None".

11.13.2.1.gif

2. Adjust indicator size and color to make it as inconspicuous as possible.

11.13.2.2.gif

3. Use Card visual to display the following measure and then put it on KPI to cover up the indicator.

Measure =
CALCULATE (
    SUM ( 'sales'[Value] ),
    FILTER (
        ALL ( 'master calendar' ),
        'master calendar'[Date] = SELECTEDVALUE ( 'master calendar'[Date] )
    )
)

My final output looks like this:

11.13.2.3.gif

 

Here is the pbix file.

 

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please upload some insensitive data samples and expected output.

 

Best Regards,
Eyelyn Qin

Hi @hariepermana ,

 

Can you tell me 2 things:

1. The date in the slicer, from which table is it coming from ?

2. What is happening now when you select a date ?

 

Regards,

Veena Shenolikar

hi @veenashenolikar 

 

1. came from master calendar

2. the trend is gone, but the value on the front keep showing according to the date i choose

 

anyway, last night finally i can solve it with stupid solution lol.. so i made a duplicate table (sales) and remove it relation with another table, but i thought there are a simpler solution for my problem..

thank you

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.