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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
suvechha
Helper IV
Helper IV

Card value ?

Hi there,

How the Card values work showing Total as 200 , Completed as 11 and Pending as 186 , even when there other filter applied. ?

suvechha_0-1603945858021.png

 


My sample model card value is different value when the filter selection is done, but my requirement is the card values should show this values
Total as 200 , Completed as 11 and Pending as 186 even there is filter selection.

 

 

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@suvechha 

you can try to change visual interactions.

https://docs.microsoft.com/en-us/power-bi/create-reports/service-reports-visual-interactions

 





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

@suvechha 

you can try to change visual interactions.

https://docs.microsoft.com/en-us/power-bi/create-reports/service-reports-visual-interactions

 





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

Proud to be a Super User!




amitchandak
Super User
Super User

@suvechha , If Completed  and Pending are values of dimension say status then

 

Calculate(Count(Table[Col]), all(Table[Status]))
or
Calculate(Count(Table[Col]), allselected(Table[Status]))

if they are meausre on different columns
[Completed] +[Pending]

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Hi Amit,

They are measures-

 

Completed :--

Completed =
CALCULATE (
DISTINCTCOUNT ( ChangeDetails[CHANGEID] ),
FILTER('Change_StageDefinition',Change_StageDefinition[DISPLAYNAME]= "Close"
),FILTER('Change_StatusDefinition',Change_StatusDefinition[STATUSDISPLAYNAME]="Completed"
))
 
Pending:-
Pending =
CALCULATE (
DISTINCTCOUNT ( ChangeDetails[CHANGEID] ),
FILTER('Change_StageDefinition',Change_StageDefinition[DISPLAYNAME] <> "Close"
),FILTER('Change_StatusDefinition',Change_StatusDefinition[STATUSDISPLAYNAME] <> "Completed" && Change_StatusDefinition[STATUSDISPLAYNAME] <> "Cancelled"
))
 
and Total :-
 
Total = CALCULATE((DISTINCTCOUNT(ChangeDetails[CHANGEID])))
 
Please find the sample file in the link-
 
Thanks
Suvechha

Hi, @suvechha 

Use the "all" function to limit  current tables in the filter condition.

New Pending = 
CALCULATE (
    DISTINCTCOUNT ( ChangeDetails[CHANGEID] ),
    FILTER(ALL('Change_StageDefinition'),Change_StageDefinition[DISPLAYNAME] <> "Close"
 ),FILTER(ALL('Change_StatusDefinition'),Change_StatusDefinition[STATUSDISPLAYNAME] <> "Completed" && Change_StatusDefinition[STATUSDISPLAYNAME] <> "Cancelled"
))
New Total = CALCULATE( [Total],ALL(Change_StatusDefinition),ALL(Change_StageDefinition))
New Completed = 
CALCULATE (
    DISTINCTCOUNT ( ChangeDetails[CHANGEID] ),
    FILTER(ALL('Change_StageDefinition'),Change_StageDefinition[DISPLAYNAME]= "Close"
 ),FILTER(ALL('Change_StatusDefinition'),Change_StatusDefinition[STATUSDISPLAYNAME]="Completed"
))

For more details ,please check attached pbix file.

 

As  mentioned by @ryan_mayu ,you can also directly disable the interaction between card visuals and  each slicer.

33.png

 

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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