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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

parameter selected column value to compare with other column to generate new column for legend usage

Hello all, i am new with power bi. I read a lot that unfortunetley we cant use parameter in new column creating but maybe someone has an idea to solve my issue.

 

I have a paramter as :

Damian_PL_0-1681636709908.png

and done by it slicer:

Damian_PL_1-1681636753589.png


and then i have table where first column is date with values of column selected by parameter
(if user select daily then daily column valies are shown, if montly then montyly column values are shown)
what i need is to take for each issue key column value calculate diffrence in dasys between created column value date and date from parameter selected column

Damian_PL_2-1681636962836.png

Damian_PL_4-1681637322336.png

As you can see on above to screenshots days diffrence for same issukey will be 15 when monthly is choosen and 1 if weekly is choosen. 

I think i need to have it as a column (this days diffrence between those dates) because i need it to use it as legend colour on chart
(for each parameter selected column i have bars with number of issuekeys ) and i need to put colours based if datediff < 8 or datediff<30 or datediff< 60 or datediff>60
something like this:

Damian_PL_3-1681637203091.png

Any ideas how to solve it?

0 REPLIES 0

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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