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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
a-simarg
Helper II
Helper II

Calculate the Percentage

Hi

Can someone help me with bellow?

I have a table with 2 columns:

Modality           Clicks

chat                    123

bot                      23456

online                  41

submission          2456

Total                  26076

 

Now i want to calculate for each modality using visualization "card" the percentage for each from the total

Example: chat - 0.47%; Bot 89.9%

 

Thanks

 

 

1 ACCEPTED SOLUTION
Arentir
Resolver III
Resolver III

Hi @a-simarg

If you use card, then you will need a visual level filter for each of your card. 

Your value can be this measure:

Measure = SUM(Table1[Clicks]) / CALCULATE(SUM(Table1[Clicks]),ALL(Table1))

 

You don't need to use total field, the calculate part will do that for you

View solution in original post

10 REPLIES 10
Arentir
Resolver III
Resolver III

Hi @a-simarg

If you use card, then you will need a visual level filter for each of your card. 

Your value can be this measure:

Measure = SUM(Table1[Clicks]) / CALCULATE(SUM(Table1[Clicks]),ALL(Table1))

 

You don't need to use total field, the calculate part will do that for you

the percenatge works but now when i choose different months the percentage remains the same for every months..

@a-simarg,

Sorry didn't have a full view on your model. The calculate ignore any filter so the total is for the whole table. If you want the ratio to work for filtered date, have the ALL only applying to modality field:

 

Measure = SUM(Table1[Clicks]) / CALCULATE(SUM(Table1[Clicks]),ALL(Table1[Modality]))

 

Anonymous
Not applicable

Looks like the filters are not propogating correctly.

 

Can you provide screenshots?

in a table, the data is changing while i am selecting different months..Capture.PNG

august.PNGjuly.PNG

Anonymous
Not applicable

You can use the in-built feature.

Capture1.PNGCapture2.PNGCapture3.pngCapture4.PNG

It is true yes, but when you filter , and choose for example Modality Chat, what percentage shows you?

Anonymous
Not applicable

You are correct, a measure is better.


@a-simarg wrote:

It is true yes, but when you filter , and choose for example Modality Chat, what percentage shows you?


 

This only worked!

thakns a lot

you are awsome!

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.