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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Total Bar in Funnel Graph

HI All,

I added the total Bar line in the Funnel graph where my requirements are:

1-. To show the total bar

2. Based on the selection from the dropdown the total bar line value should also change.

 

I was able to solve the first requirement by using Unions however when I try to filter the data using the selection from the dropdown my total bar line remains the same and it doesn't gives me the total of what i have selected.

 

For example:

My data looks like this after solving the 1st requirements.

Capture1.PNG

 

After selecting the values from the dropdown something like this, the total value doesn't change and it shows incorrect data.

 

Any help how can I resolve this? I am also here by attaching my sample data for your reference. 

 

https://www.dropbox.com/s/p1z1no5kcispdkn/Trial%20Aging.pbix?dl=0

 

 

Capture 3.PNG

 

 

Thanks,

Tejaswi

 

2 ACCEPTED SOLUTIONS
parry2k
Super User
Super User

@Anonymous change your calculated table expression as below

 

Table 6 = UNION(SUMMARIZE('Table (5)',"ACC","Tota1","AD", "Total","Aging","TotalS","P",0),'Table (5)')

 

Add new measure to show in funnel graph

 

Total Aging = IF ( MAX ( 'Table 6'[Aging] ) = "TotalS", CALCULATE( SUM ( 'Table 6'[P] ), ALLSELECTED() ), SUM ( 'Table 6'[P] ) )

 

Use this measure Total Aging in the visual and it will give you what you are looking for.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

Anonymous
Not applicable

Hi @Anonymous ,

I just modified table 6 as below
Table 6 = UNION(SUMMARIZECOLUMNS('Table (5)'[Aging]),SUMMARIZECOLUMNS('Table (5)',"Aging","Totals"))

After that create inactive relationship using Aging (Fig 1.1).

Aging filter from table 5 and create the below measure to achieve the request 
Value = IF(SELECTEDVALUE('Table 6'[Aging])="Totals",CALCULATE(SUM('Table (5)'[Tot]),ALLSELECTED('Table (5)')),

CALCULATE(SUM('Table (5)'[Tot]),USERELATIONSHIP('Table (5)'[Aging],'Table 6'[Aging])))

 

Fig 1.1:

Relation.PNG

Output:

Output 2.PNG

 

Output_1.PNG


Best Regards,
Mail2inba4

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous ,

I just modified table 6 as below
Table 6 = UNION(SUMMARIZECOLUMNS('Table (5)'[Aging]),SUMMARIZECOLUMNS('Table (5)',"Aging","Totals"))

After that create inactive relationship using Aging (Fig 1.1).

Aging filter from table 5 and create the below measure to achieve the request 
Value = IF(SELECTEDVALUE('Table 6'[Aging])="Totals",CALCULATE(SUM('Table (5)'[Tot]),ALLSELECTED('Table (5)')),

CALCULATE(SUM('Table (5)'[Tot]),USERELATIONSHIP('Table (5)'[Aging],'Table 6'[Aging])))

 

Fig 1.1:

Relation.PNG

Output:

Output 2.PNG

 

Output_1.PNG


Best Regards,
Mail2inba4

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thanks @Anonymous ,

 

This is also another solution.

 

Thanks for your help!

 

-Tejaswi

parry2k
Super User
Super User

@Anonymous change your calculated table expression as below

 

Table 6 = UNION(SUMMARIZE('Table (5)',"ACC","Tota1","AD", "Total","Aging","TotalS","P",0),'Table (5)')

 

Add new measure to show in funnel graph

 

Total Aging = IF ( MAX ( 'Table 6'[Aging] ) = "TotalS", CALCULATE( SUM ( 'Table 6'[P] ), ALLSELECTED() ), SUM ( 'Table 6'[P] ) )

 

Use this measure Total Aging in the visual and it will give you what you are looking for.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Thank @parry2k  for your quick reply!

 

It works now as expected !

 

Regards,

Tejaswi

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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