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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
emmanuelvallejo
Frequent Visitor

Is it possible to use slicer selected value as flag column?

Context:
I have one tables on PowerBI
Activity:

DateStoreSalesGross Margin
01/01/2021Branch 1100002000
01/02/2021Branch 1200004000
01/03/2021Branch 1150003000
01/04/2021Branch 1210004100
01/05/2021Branch 1300006000


I have a Date slicer having the list of dates on this table.
I need to add a column indicating if the date is before or on, from the value selected on the slicer,
For example if 01/03/2021 is selected on the slicer I want this flag column:
This column needs to be dynamic, is this possible?
 

DateStoreSalesGross MarginFlag
01/01/2021Branch 1100002000

1

01/02/2021Branch 12000040001
01/03/2021Branch 11500030001
01/04/2021Branch 12100041000
01/05/2021Branch 13000060000
1 ACCEPTED SOLUTION
stevedep
Memorable Member
Memorable Member

Hi @emmanuelvallejo ,

 

Assuming its semantics, and that you don't mind that its a measure, yes, its possible. Please see below:

stevedep_0-1614489403729.png

Hope that this works for you?

 

Kind regards, 

 

 

Steve. 

 

View solution in original post

3 REPLIES 3
stevedep
Memorable Member
Memorable Member

Hi @emmanuelvallejo ,

 

Assuming its semantics, and that you don't mind that its a measure, yes, its possible. Please see below:

stevedep_0-1614489403729.png

Hope that this works for you?

 

Kind regards, 

 

 

Steve. 

 

Hello Steve,
It works this way, I guess I can move forward on the solution using it.
Thanks for you reply and example 

lbendlin
Super User
Super User

No. You can only modify measures based on filter selections. calculated columns are not impacted by filters.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.